mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
add a fixme
llvm-svn: 76324
This commit is contained in:
parent
9a224562e5
commit
ffd009f039
@ -45,6 +45,11 @@ unsigned InlineCostAnalyzer::FunctionInfo::
|
||||
|
||||
// We can't constant propagate instructions which have effects or
|
||||
// read memory.
|
||||
//
|
||||
// FIXME: It would be nice to capture the fact that a load from a
|
||||
// pointer-to-constant-global is actually a *really* good thing to zap.
|
||||
// Unfortunately, we don't know the pointer that may get propagated here,
|
||||
// so we can't make this decision.
|
||||
if (Inst.mayReadFromMemory() || Inst.mayHaveSideEffects() ||
|
||||
isa<AllocationInst>(Inst))
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user