Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.113 -> 1.114 --- Log message: Minor tweak to get isel opt --- Diffs of the changes: (+2 -1) SelectionDAGISel.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.113 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.114 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.113 Thu Dec 8 02:00:12 2005 +++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Sun Dec 11 03:05:13 2005 @@ -1324,7 +1324,8 @@ break; } } - if (!hasConstantIndex) return; + // If this is a GEP &Alloca, 0, 0, forward subst the frame index into uses. + if (!hasConstantIndex && !isa<AllocaInst>(GEPI->getOperand(0))) return; // Otherwise, decompose the GEP instruction into multiplies and adds. Sum the // constant offset (which we now know is non-zero) and deal with it later. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits