diff options
| author | Dale Johannesen <dalej@apple.com> | 2010-06-25 17:41:07 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2010-06-25 17:41:07 +0000 |
| commit | 2ac3b9cbd49e4797bc2ea26af39f8bc407f45cfa (patch) | |
| tree | c835ba2e361180e018d56d280df779d97551b0ba /llvm/lib/CodeGen | |
| parent | 283fe3d07a51872a607dad46f2e2ba918c0a0108 (diff) | |
| download | bcm5719-llvm-2ac3b9cbd49e4797bc2ea26af39f8bc407f45cfa.tar.gz bcm5719-llvm-2ac3b9cbd49e4797bc2ea26af39f8bc407f45cfa.zip | |
Cosmetic.
llvm-svn: 106865
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/VirtRegRewriter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/VirtRegRewriter.cpp b/llvm/lib/CodeGen/VirtRegRewriter.cpp index 6370d8fa5cb..11bd3cde707 100644 --- a/llvm/lib/CodeGen/VirtRegRewriter.cpp +++ b/llvm/lib/CodeGen/VirtRegRewriter.cpp @@ -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; } |

