aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86InstrInfo.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-05-12 20:54:26 +0000
committerBill Wendling <isanbard@gmail.com>2008-05-12 20:54:26 +0000
commit9f8fea3531f8f8d04d1e183ff570be37d41d13f5 (patch)
treea073698eeb7c4d0ccb1adaa5aab19d48845843f4 /lib/Target/X86/X86InstrInfo.cpp
parentc2616e43fd980505d3b29b92473d047f878f6708 (diff)
downloadexternal_llvm-9f8fea3531f8f8d04d1e183ff570be37d41d13f5.zip
external_llvm-9f8fea3531f8f8d04d1e183ff570be37d41d13f5.tar.gz
external_llvm-9f8fea3531f8f8d04d1e183ff570be37d41d13f5.tar.bz2
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 'lib/Target/X86/X86InstrInfo.cpp')
-rw-r--r--lib/Target/X86/X86InstrInfo.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp
index 8b31f5d..d2c5abe 100644
--- a/lib/Target/X86/X86InstrInfo.cpp
+++ b/lib/Target/X86/X86InstrInfo.cpp
@@ -760,7 +760,8 @@ static inline bool isGVStub(GlobalValue *GV, X86TargetMachine &TM) {
return TM.getSubtarget<X86Subtarget>().GVRequiresExtraLoad(GV, TM, false);
}
-bool X86InstrInfo::isReallyTriviallyReMaterializable(MachineInstr *MI) const {
+bool
+X86InstrInfo::isReallyTriviallyReMaterializable(const MachineInstr *MI) const {
switch (MI->getOpcode()) {
default: break;
case X86::MOV8rm: