diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-07-18 18:49:04 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-07-18 18:49:04 +0000 |
| commit | e52063a42b7b6431037812a232099eb13fc12a43 (patch) | |
| tree | 5758087d56de10d89ba84af46568df05404cf9b1 /lib/Transforms/Utils | |
| parent | 2743a2e8f2d186a379ed98e574dbb3c1180f9a8c (diff) | |
| download | external_llvm-e52063a42b7b6431037812a232099eb13fc12a43.zip external_llvm-e52063a42b7b6431037812a232099eb13fc12a43.tar.gz external_llvm-e52063a42b7b6431037812a232099eb13fc12a43.tar.bz2 | |
add a fixme
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
| -rw-r--r-- | lib/Transforms/Utils/InlineCost.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/InlineCost.cpp b/lib/Transforms/Utils/InlineCost.cpp index 5fe85e6..8925a75 100644 --- a/lib/Transforms/Utils/InlineCost.cpp +++ b/lib/Transforms/Utils/InlineCost.cpp @@ -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; |
