forked from OSchip/llvm-project
Fix bug in commit 323096 exposed by test in test-suite-verify-machineinstrs-x86_64h-O3
Change-Id: I0a4b10d0d6c8de606d989c567ec07944ae283a87 llvm-svn: 323126
This commit is contained in:
parent
7ab96f534c
commit
811523cc08
|
@ -8336,7 +8336,7 @@ void X86InstrInfo::breakPartialRegDependency(
|
|||
// 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);
|
||||
|
|
Loading…
Reference in New Issue