diff options
author | Dan Gohman <gohman@apple.com> | 2008-12-23 17:28:50 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-12-23 17:28:50 +0000 |
commit | 072e52f1709ef803c899bb06153627a879ddac3e (patch) | |
tree | 80f74ffae65f3f12d0c4f9f6ee365e8fa7287b30 /llvm/lib/CodeGen/MachineLICM.cpp | |
parent | 92cf280dfb315be4a8c703c7803c45b795ae703b (diff) | |
download | bcm5719-llvm-072e52f1709ef803c899bb06153627a879ddac3e.tar.gz bcm5719-llvm-072e52f1709ef803c899bb06153627a879ddac3e.zip |
Use isTerminator() instead of isBranch()||isReturn() in
several places. isTerminator() returns true for a superset
of cases, and includes things like FP_REG_KILL, which are
nither return or branch but aren't safe to move/remat/etc.
llvm-svn: 61373
Diffstat (limited to 'llvm/lib/CodeGen/MachineLICM.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineLICM.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp index f19862c47b2..d0baaa87ae1 100644 --- a/llvm/lib/CodeGen/MachineLICM.cpp +++ b/llvm/lib/CodeGen/MachineLICM.cpp @@ -205,7 +205,7 @@ bool MachineLICM::IsLoopInvariantInst(MachineInstr &I) { const TargetInstrDesc &TID = I.getDesc(); // Ignore stuff that we obviously can't hoist. - if (TID.mayStore() || TID.isCall() || TID.isReturn() || TID.isBranch() || + if (TID.mayStore() || TID.isCall() || TID.isTerminator() || TID.hasUnmodeledSideEffects()) return false; |