[ARM] Remove dead code from ARMConstantIslands.
authorEli Friedman <efriedma@quicinc.com>
Wed, 24 Jul 2019 23:36:14 +0000 (23:36 +0000)
committerEli Friedman <efriedma@quicinc.com>
Wed, 24 Jul 2019 23:36:14 +0000 (23:36 +0000)
tLDRHi is not a pc-relative load; it can't directly refer to a
constant pool or jump table.

llvm-svn: 366963

llvm/lib/Target/ARM/ARMConstantIslandPass.cpp

index 46e497e..c97cb08 100644 (file)
@@ -824,11 +824,6 @@ initializeFunctionInfo(const std::vector<MachineInstr*> &CPEMIs) {
             Scale = 2;  // +-(offset_8*2)
             NegOk = true;
             break;
-
-          case ARM::tLDRHi:
-            Bits = 5;
-            Scale = 2; // +(offset_5*2)
-            break;
           }
 
           // Remember that this is a user of a CP entry.