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 | 4162e3e213afa3aa9323d1d4a14dea799116cf13 (patch) | |
tree | 32a6c4b0dadadd7679f75621405c87aaf7c26802 /llvm/lib/CodeGen/MachineLICM.cpp | |
parent | 9d6d77a9f448b71cfc3ceeb77e5810733334cbfd (diff) | |
download | bcm5719-llvm-4162e3e213afa3aa9323d1d4a14dea799116cf13.tar.gz bcm5719-llvm-4162e3e213afa3aa9323d1d4a14dea799116cf13.zip |
Add a FIXME comment.
llvm-svn: 118803
Diffstat (limited to 'llvm/lib/CodeGen/MachineLICM.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineLICM.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp index 811c86cfd8f..e3b21c4ca57 100644 --- a/llvm/lib/CodeGen/MachineLICM.cpp +++ b/llvm/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); |