[llvm-commits] [llvm] r106865 - /llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp
Dale Johannesen
dalej at apple.com
Fri Jun 25 10:41:07 PDT 2010
Author: johannes
Date: Fri Jun 25 12:41:07 2010
New Revision: 106865
URL: http://llvm.org/viewvc/llvm-project?rev=106865&view=rev
Log:
Cosmetic.
Modified:
llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp
Modified: llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp?rev=106865&r1=106864&r2=106865&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp Fri Jun 25 12:41:07 2010
@@ -2036,13 +2036,10 @@
// If this is an asm, and PhysReg is used elsewhere as an earlyclobber
// operand, we can't also use it as an input. (Outputs always come
// before inputs, so we can stop looking at i.)
- if (MI.getOpcode()==TargetOpcode::INLINEASM) {
+ if (MI.isInlineAsm()) {
for (unsigned k=0; k<i; ++k) {
MachineOperand &MOk = MI.getOperand(k);
- if (!MOk.isReg() || MOk.getReg()==0)
- continue;
- unsigned VirtRegk = MOk.getReg();
- if (VirtRegk == PhysReg && MOk.isEarlyClobber()) {
+ if (MOk.isReg() && MOk.getReg()==PhysReg && MOk.isEarlyClobber()) {
CanReuse = false;
break;
}
More information about the llvm-commits
mailing list