summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineLICM.cpp
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
commit4162e3e213afa3aa9323d1d4a14dea799116cf13 (patch)
tree32a6c4b0dadadd7679f75621405c87aaf7c26802 /llvm/lib/CodeGen/MachineLICM.cpp
parent9d6d77a9f448b71cfc3ceeb77e5810733334cbfd (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud