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/MachineInstr.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/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 2f026018fa3..3825ddbb074 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -707,7 +707,7 @@ bool MachineInstr::isSafeToMove(const TargetInstrInfo *TII, SawStore = true; return false; } - if (TID->isReturn() || TID->isBranch() || TID->hasUnmodeledSideEffects()) + if (TID->isTerminator() || TID->hasUnmodeledSideEffects()) return false; // See if this instruction does a load. If so, we have to guarantee that the |