[PATCH] D23000: [X86] Improve 64-bit shifts on 32-bit targets (PR14593)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 31 11:13:55 PDT 2016


RKSimon added inline comments.

================
Comment at: lib/Target/X86/X86ISelLowering.cpp:28675
@@ +28674,3 @@
+            isa<ConstantSDNode>(Op1.getOperand(1)) &&
+            Op1.getConstantOperandVal(1) == 1) {
+          return DAG.getNode(Opc, DL, VT, Op0, Op1.getOperand(0),
----------------
Possibly - I'm interested in being able to match a lot of DAGCombiner patterns for both scalar and vector types.

Currently, at best we only match vector types with 'splatted' constant values - being able to generalize this would be very useful, I've played with some basic all_of style approaches but nothing has been great.

Could your template patterns make this any easier?


Repository:
  rL LLVM

https://reviews.llvm.org/D23000





More information about the llvm-commits mailing list