[llvm] r371883 - AArch64: fix EXPENSIVE_CHECKS for arm64_32.
Tim Northover via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 13 11:55:38 PDT 2019
Author: tnorthover
Date: Fri Sep 13 11:55:38 2019
New Revision: 371883
URL: http://llvm.org/viewvc/llvm-project?rev=371883&view=rev
Log:
AArch64: fix EXPENSIVE_CHECKS for arm64_32.
For some reason I'd decided to mark the end-result of a GOT load as
dead. It's clearly not (necessarily).
Modified:
llvm/trunk/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp?rev=371883&r1=371882&r2=371883&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp Fri Sep 13 11:55:38 2019
@@ -506,7 +506,7 @@ bool AArch64ExpandPseudo::expandMI(Machi
unsigned Reg32 = TRI->getSubReg(DstReg, AArch64::sub_32);
unsigned DstFlags = MI.getOperand(0).getTargetFlags();
MIB2 = BuildMI(MBB, MBBI, MI.getDebugLoc(), TII->get(AArch64::LDRWui))
- .addDef(Reg32, RegState::Dead)
+ .addDef(Reg32)
.addReg(DstReg, RegState::Kill)
.addReg(DstReg, DstFlags | RegState::Implicit);
} else {
More information about the llvm-commits
mailing list