[PATCH] D107923: [X86] X86DAGToDAGISel::matchBitExtract(): support 'num high bits to clear' pattern

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 25 07:58:52 PDT 2021


RKSimon added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:3462
+  auto matchShiftAmt = [&NBits, &NegateNBits](SDValue ShiftAmt,
+                                              unsigned Bitwidth) {
+    NBits = ShiftAmt;
----------------
is this a match function anymore? should it canonicalizeShiftAmt?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D107923



More information about the llvm-commits mailing list