[PATCH] D121147: [x86] try harder to use shift instead of test if it can save some immediate bytes

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 14:00:46 PST 2022


RKSimon added a reviewer: MatzeB.
RKSimon added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:5632
           ShiftAmt = countLeadingZeros(Mask);
         }
         if (ShiftOpcode != ISD::DELETED_NODE) {
----------------
If we added shifted mask detection would we hit any of the folds that D121320 is targetting?


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

https://reviews.llvm.org/D121147



More information about the llvm-commits mailing list