mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 08:54:58 +00:00
add a fixme
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76324 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fc2271f3f5
commit
93f2491cf8
@ -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