diff options
author | Bill Wendling <isanbard@gmail.com> | 2008-05-12 20:54:26 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2008-05-12 20:54:26 +0000 |
commit | 9f8fea3531f8f8d04d1e183ff570be37d41d13f5 (patch) | |
tree | a073698eeb7c4d0ccb1adaa5aab19d48845843f4 /include | |
parent | c2616e43fd980505d3b29b92473d047f878f6708 (diff) | |
download | llvm-9f8fea3531f8f8d04d1e183ff570be37d41d13f5.tar.gz llvm-9f8fea3531f8f8d04d1e183ff570be37d41d13f5.tar.bz2 llvm-9f8fea3531f8f8d04d1e183ff570be37d41d13f5.tar.xz |
Constify the machine instruction passed into the
"is{Trivially,Really}ReMaterializable" methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51001 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index ca35fa7850..f9fd6ab30d 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -67,7 +67,7 @@ public: /// isTriviallyReMaterializable - Return true if the instruction is trivially /// rematerializable, meaning it has no side effects and requires no operands /// that aren't always available. - bool isTriviallyReMaterializable(MachineInstr *MI) const { + bool isTriviallyReMaterializable(const MachineInstr *MI) const { return MI->getDesc().isRematerializable() && isReallyTriviallyReMaterializable(MI); } @@ -81,7 +81,7 @@ protected: /// return false if the instruction has any side effects other than /// producing a value, or if it requres any address registers that are not /// always available. - virtual bool isReallyTriviallyReMaterializable(MachineInstr *MI) const { + virtual bool isReallyTriviallyReMaterializable(const MachineInstr *MI) const { return true; } |