diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-02-16 00:37:02 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-02-16 00:37:02 +0000 |
commit | 2eecc22fdbff0b089f1600981809d36eca67bdf4 (patch) | |
tree | 6d8cc0374418bc326bf506cfd7705d117cfe123f /llvm/lib | |
parent | 4a8c43fe6d36fd259196397ed9b61b559d233bc3 (diff) | |
download | bcm5719-llvm-2eecc22fdbff0b089f1600981809d36eca67bdf4.tar.gz bcm5719-llvm-2eecc22fdbff0b089f1600981809d36eca67bdf4.zip |
Remove a duplicated check.
llvm-svn: 125625
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/VirtRegRewriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/VirtRegRewriter.cpp b/llvm/lib/CodeGen/VirtRegRewriter.cpp index 1d0404efb57..458a2134bf4 100644 --- a/llvm/lib/CodeGen/VirtRegRewriter.cpp +++ b/llvm/lib/CodeGen/VirtRegRewriter.cpp @@ -1633,7 +1633,7 @@ SpillRegToStackSlot(MachineBasicBlock::iterator &MII, /// effect and all of its defs are dead. static bool isSafeToDelete(MachineInstr &MI) { const TargetInstrDesc &TID = MI.getDesc(); - if (TID.mayLoad() || TID.mayStore() || TID.isCall() || TID.isTerminator() || + if (TID.mayLoad() || TID.mayStore() || TID.isTerminator() || TID.isCall() || TID.isBarrier() || TID.isReturn() || MI.isLabel() || MI.isDebugValue() || MI.hasUnmodeledSideEffects()) |