[llvm] r323126 - Fix bug in commit 323096 exposed by test in test-suite-verify-machineinstrs-x86_64h-O3
Marina Yatsina via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 22 07:31:05 PST 2018
Author: myatsina
Date: Mon Jan 22 07:31:05 2018
New Revision: 323126
URL: http://llvm.org/viewvc/llvm-project?rev=323126&view=rev
Log:
Fix bug in commit 323096 exposed by test in test-suite-verify-machineinstrs-x86_64h-O3
Change-Id: I0a4b10d0d6c8de606d989c567ec07944ae283a87
Modified:
llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.cpp?rev=323126&r1=323125&r2=323126&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Mon Jan 22 07:31:05 2018
@@ -8336,7 +8336,7 @@ void X86InstrInfo::breakPartialRegDepend
// Using XOR32rr because it has shorter encoding and zeros up the upper bits
// as well.
unsigned XReg = TRI->getSubReg(Reg, X86::sub_32bit);
- BuildMI(*MI.getParent(), MI, MI.getDebugLoc(), get(X86::XOR32rr), Reg)
+ BuildMI(*MI.getParent(), MI, MI.getDebugLoc(), get(X86::XOR32rr), XReg)
.addReg(XReg, RegState::Undef)
.addReg(XReg, RegState::Undef)
.addReg(Reg, RegState::ImplicitDefine);
More information about the llvm-commits
mailing list