Fix an error in the MBlaze delay slot filler.
authorWesley Peck <peckw@wesleypeck.com>
Mon, 11 Apr 2011 22:45:02 +0000 (22:45 +0000)
committerWesley Peck <peckw@wesleypeck.com>
Mon, 11 Apr 2011 22:45:02 +0000 (22:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129313 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/MBlaze/MBlazeDelaySlotFiller.cpp

index 4399ee2800989c7bb474a8f7ce0c4fc7882267ab..973e96844e81eac9ac78fd1dd070bd7f1be25085 100644 (file)
@@ -77,7 +77,7 @@ static bool hasImmInstruction(MachineBasicBlock::iterator &candidate) {
 
         // We must assume that unknown immediate values require more than
         // 16-bits to represent.
-        if (mop.isGlobal() || mop.isSymbol())
+        if (mop.isGlobal() || mop.isSymbol() || mop.isJTI() || mop.isCPI())
           return true;
 
         // FIXME: we could probably check to see if the FP value happens