From 82e109279d781aa7690d65a9401e7a9b492c7ccb Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Wed, 24 Jul 2019 23:36:14 +0000 Subject: [PATCH] [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. llvm-svn: 366963 --- llvm/lib/Target/ARM/ARMConstantIslandPass.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp index 46e497e..c97cb08 100644 --- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp +++ b/llvm/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. -- 2.7.4