[llvm] r249887 - Revert "Simplify code. NFC."
Chad Rosier via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 9 12:48:49 PDT 2015
Author: mcrosier
Date: Fri Oct 9 14:48:48 2015
New Revision: 249887
URL: http://llvm.org/viewvc/llvm-project?rev=249887&view=rev
Log:
Revert "Simplify code. NFC."
This reverts commit r248610.
Modified:
llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp
Modified: llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp?rev=249887&r1=249886&r2=249887&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp (original)
+++ llvm/trunk/lib/CodeGen/AggressiveAntiDepBreaker.cpp Fri Oct 9 14:48:48 2015
@@ -224,7 +224,12 @@ bool AggressiveAntiDepBreaker::IsImplici
if (Reg == 0)
return false;
- MachineOperand *Op = MI->findRegisterUseOperand(Reg, /*isKill=*/MO.isDef());
+ MachineOperand *Op = nullptr;
+ if (MO.isDef())
+ Op = MI->findRegisterUseOperand(Reg, true);
+ else
+ Op = MI->findRegisterDefOperand(Reg);
+
return(Op && Op->isImplicit());
}
More information about the llvm-commits
mailing list