diff options
| author | Pete Cooper <peter_cooper@apple.com> | 2011-11-03 20:47:50 +0000 |
|---|---|---|
| committer | Pete Cooper <peter_cooper@apple.com> | 2011-11-03 20:47:50 +0000 |
| commit | 65ba66c6608faf0273e95ff9b5baad3c5163efa6 (patch) | |
| tree | b69364e24bd493cd8d6231dbb53585dfe1c66bfa /llvm/lib | |
| parent | eadd3e81a04ec492301333502f74f97e98215849 (diff) | |
| download | bcm5719-llvm-65ba66c6608faf0273e95ff9b5baad3c5163efa6.tar.gz bcm5719-llvm-65ba66c6608faf0273e95ff9b5baad3c5163efa6.zip | |
Reverted r143600 - selector reference change
llvm-svn: 143646
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index a2fd3c46bf0..a240667f7d6 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/lib/CodeGen/MachineInstr.cpp @@ -1232,19 +1232,6 @@ bool MachineInstr::hasVolatileMemoryRef() const { return false; } -/// pointsToRuntimeConstantMemory - Return true if this value points to data -/// which does never changes once the program starts running -static bool pointsToRuntimeConstantMemory(const Value *V) { - if (const GlobalVariable *GV = dyn_cast<GlobalVariable>(V)) { - StringRef Name = GV->getName(); - // These special values are known to be constant at runtime - // TODO: a new linkage type for these would be far better than this check - if (Name.startswith("\01L_OBJC_SELECTOR_REFERENCES_")) - return true; - } - return false; -} - /// isInvariantLoad - Return true if this instruction is loading from a /// location whose value is invariant across the function. For example, /// loading a value from the constant pool or from the argument area @@ -1272,8 +1259,6 @@ bool MachineInstr::isInvariantLoad(AliasAnalysis *AA) const { if (const PseudoSourceValue *PSV = dyn_cast<PseudoSourceValue>(V)) if (PSV->isConstant(MFI)) continue; - if (pointsToRuntimeConstantMemory(V)) - continue; // If we have an AliasAnalysis, ask it whether the memory is constant. if (AA && AA->pointsToConstantMemory( AliasAnalysis::Location(V, (*I)->getSize(), |

