[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
Sun Jul 17 14:05:55 PDT 2022


RKSimon added a comment.

In D129933#3658367 <https://reviews.llvm.org/D129933#3658367>, @RKSimon wrote:

> Do people think this is going to need a TLI callback ?

We might be able to adjust visitShiftByConstant + isDesirableToCommuteWithShift to handle this - I'll take a look.


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