Cosmetic.
authorDale Johannesen <dalej@apple.com>
Fri, 25 Jun 2010 17:41:07 +0000 (17:41 +0000)
committerDale Johannesen <dalej@apple.com>
Fri, 25 Jun 2010 17:41:07 +0000 (17:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106865 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/VirtRegRewriter.cpp

index 6370d8fa5cba6a312c4736548d6c0bd15602e1c1..11bd3cde707fe9d55cde18033cd710a288adebbc 100644 (file)
@@ -2036,13 +2036,10 @@ LocalRewriter::RewriteMBB(LiveIntervals *LIs,
         // 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;
             }