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 | 493315922b190b74a7de8ac3cd1dfb914d81d6a6 (patch) | |
tree | 17779ee4f01447e5c5d7c3b53cee4fc9df32de4c /lib/CodeGen | |
parent | 9119b4fb49318543b3e3bbbdeb7608233222edaf (diff) | |
download | external_llvm-493315922b190b74a7de8ac3cd1dfb914d81d6a6.zip external_llvm-493315922b190b74a7de8ac3cd1dfb914d81d6a6.tar.gz external_llvm-493315922b190b74a7de8ac3cd1dfb914d81d6a6.tar.bz2 |
Cosmetic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106865 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/VirtRegRewriter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/CodeGen/VirtRegRewriter.cpp b/lib/CodeGen/VirtRegRewriter.cpp index 6370d8f..11bd3cd 100644 --- a/lib/CodeGen/VirtRegRewriter.cpp +++ b/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; } |