summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-11 18:08:43 +0000
committerDan Gohman <gohman@apple.com>2010-11-11 18:08:43 +0000
commitfca0b106f7df867912cd1de8bbd6285bb2ab7225 (patch)
tree85f9a8509b606fd5a783ea11902207a21a46593c /lib/CodeGen
parentc466b937dbdbaabeef0097fe340de1b8f49a3508 (diff)
downloadllvm-fca0b106f7df867912cd1de8bbd6285bb2ab7225.tar.gz
llvm-fca0b106f7df867912cd1de8bbd6285bb2ab7225.tar.bz2
llvm-fca0b106f7df867912cd1de8bbd6285bb2ab7225.tar.xz
Add a FIXME comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118803 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineLICM.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp
index 811c86cfd8..e3b21c4ca5 100644
--- a/lib/CodeGen/MachineLICM.cpp
+++ b/lib/CodeGen/MachineLICM.cpp
@@ -944,6 +944,8 @@ bool MachineLICM::IsProfitableToHoist(MachineInstr &MI) {
// In low register pressure situation, we can be more aggressive about
// hoisting. Also, favors hoisting long latency instructions even in
// moderately high pressure situation.
+ // FIXME: If there are long latency loop-invariant instructions inside the
+ // loop at this point, why didn't the optimizer's LICM hoist them?
DenseMap<unsigned, int> Cost;
for (unsigned i = 0, e = MI.getDesc().getNumOperands(); i != e; ++i) {
const MachineOperand &MO = MI.getOperand(i);