aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/ARM/ARMConstantIslandPass.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp
index e9ccf04fee..ba74c11552 100644
--- a/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/lib/Target/ARM/ARMConstantIslandPass.cpp
@@ -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