diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-18 23:28:01 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-18 23:28:01 +0000 |
commit | fdeb393caefd0e169d3195892e8c220a1688372a (patch) | |
tree | 312318482d5af5306e9d2881f4bdc15f3b4664b2 /include/llvm/CodeGen/MachineInstr.h | |
parent | 38f5140557af0adb295415a4f1bc60a1de2b1f0d (diff) | |
download | external_llvm-fdeb393caefd0e169d3195892e8c220a1688372a.zip external_llvm-fdeb393caefd0e169d3195892e8c220a1688372a.tar.gz external_llvm-fdeb393caefd0e169d3195892e8c220a1688372a.tar.bz2 |
Teach regular and fast isel to set dead flags on unused implicit defs
on calls and similar instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 1171c3a..44d716e 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -364,6 +364,11 @@ public: void addRegisterDefined(unsigned IncomingReg, const TargetRegisterInfo *RegInfo = 0); + /// setPhysRegsDeadExcept - Mark every physreg used by this instruction as dead + /// except those in the UsedRegs list. + void setPhysRegsDeadExcept(const SmallVectorImpl<unsigned> &UsedRegs, + const TargetRegisterInfo &TRI); + /// isSafeToMove - Return true if it is safe to move this instruction. If /// SawStore is set to true, it means that there is a store (or call) between /// the instruction's location and its intended destination. |