[PATCH] D22726: [DAGCombine] Match shift amount by value rather than relying on common sub-expressions.

bryant via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 16 14:16:22 PDT 2016


bryant marked an inline comment as done.

================
Comment at: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:4857
@@ +4856,3 @@
+    APInt c0 = N1C->getAPIntValue();
+    zeroExtendToMatch(c1, c0);
+    if (c1.eq(c0)) {
----------------
You're right. That was the original premise of this patch.


Repository:
  rL LLVM

https://reviews.llvm.org/D22726





More information about the llvm-commits mailing list