Doh. ARM::LEApcrel is a single instruction MI.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 27 Apr 2007 18:27:13 +0000 (18:27 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 27 Apr 2007 18:27:13 +0000 (18:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36513 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMConstantIslandPass.cpp

index e9ccf04fee0b13230425fadcd7675d770e10a10f..ba74c115524f0452a99f7e89e090e93077b9d14d 100644 (file)
@@ -874,11 +874,9 @@ bool ARMConstantIslands::HandleConstantPoolUser(MachineFunction &Fn,
   // Compute this only once, it's expensive
   unsigned UserOffset = GetOffsetOf(UserMI) + (isThumb ? 4 : 8);
 
-  // Special cases: LEApcrel and tLEApcrel are two instructions MI's. The
-  // actual user is the second instruction.
-  if (UserMI->getOpcode() == ARM::LEApcrel)
-    UserOffset += 4;
-  else if (UserMI->getOpcode() == ARM::tLEApcrel)
+  // Special case: tLEApcrel are two instructions MI's. The actual user is the
+  // second instruction.
+  if (UserMI->getOpcode() == ARM::tLEApcrel)
     UserOffset += 2;
  
   // See if the current entry is within range, or there is a clone of it