[PATCH] D66687: [x86] try to form more bt/test + set out of shift+mask patterns

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 23 18:18:41 PDT 2019


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:39006
+  APInt OneBit =
+      APInt::getOneBitSet(VT.getSizeInBits(), Srl.getConstantOperandVal(1));
+  SDValue BitMask = DAG.getConstant(OneBit, DL, VT);
----------------
How do we know the shift amount isn't bigger than the bit width?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66687/new/

https://reviews.llvm.org/D66687





More information about the llvm-commits mailing list