From: Eli Friedman Date: Wed, 24 Jul 2019 23:36:14 +0000 (+0000) Subject: [ARM] Remove dead code from ARMConstantIslands. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1396e0fa82aeddedbe5f36aec16b3e520e73f66b;p=llvm [ARM] Remove dead code from ARMConstantIslands. tLDRHi is not a pc-relative load; it can't directly refer to a constant pool or jump table. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366963 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp index 46e497ea098..c97cb08c6b8 100644 --- a/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/lib/Target/ARM/ARMConstantIslandPass.cpp @@ -824,11 +824,6 @@ initializeFunctionInfo(const std::vector &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.