Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.354 -> 1.355 --- Log message: Trivial patch to speed up legalizing common i64 constants. --- Diffs of the changes: (+7 -0) SelectionDAG.cpp | 7 +++++++ 1 files changed, 7 insertions(+) Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.354 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.355 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.354 Tue Oct 17 16:14:32 2006 +++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Tue Oct 17 16:47:13 2006 @@ -1234,6 +1234,13 @@ if (N2C && N2C->getValue() == 0) return N2; break; + case ISD::OR: + case ISD::XOR: + // (X ^| 0) -> X. This commonly occurs when legalizing i64 values, so it's + // worth handling here. + if (N2C && N2C->getValue() == 0) + return N1; + break; case ISD::FP_ROUND_INREG: if (cast<VTSDNode>(N2)->getVT() == VT) return N1; // Not actually rounding. break; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits