1
0
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:
Chris Lattner 2009-07-18 18:49:04 +00:00
parent 9a224562e5
commit ffd009f039

View File

@ -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;