diff options
author | Dan Gohman <gohman@apple.com> | 2010-11-11 18:08:43 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-11-11 18:08:43 +0000 |
commit | fca0b106f7df867912cd1de8bbd6285bb2ab7225 (patch) | |
tree | 85f9a8509b606fd5a783ea11902207a21a46593c /lib | |
parent | c466b937dbdbaabeef0097fe340de1b8f49a3508 (diff) | |
download | external_llvm-fca0b106f7df867912cd1de8bbd6285bb2ab7225.zip external_llvm-fca0b106f7df867912cd1de8bbd6285bb2ab7225.tar.gz external_llvm-fca0b106f7df867912cd1de8bbd6285bb2ab7225.tar.bz2 |
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')
-rw-r--r-- | lib/CodeGen/MachineLICM.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp index 811c86c..e3b21c4 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); |