[PATCH] D129933: [DAG] SimplifyDemandedBits - relax "xor (X >> ShiftC), XorC --> (not X) >> ShiftC" to match only demanded bits

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 16 05:18:32 PDT 2022


RKSimon added inline comments.


================
Comment at: llvm/test/CodeGen/AArch64/selectcc-to-shiftand.ll:81
   ret i32 %retval
 }
 
----------------
I don't think this will appear in DAG, and Instcombine will fold this to a xor-shift-mask pattern: https://gcc.godbolt.org/z/nMdqeaGYh


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129933



More information about the llvm-commits mailing list