[PATCH] D122754: [DAG] Allow XOR(X,MIN_SIGNED_VALUE) to perform AddLike folds

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 30 15:09:02 PDT 2022


craig.topper added a comment.

What about (add (xor X, MIN_SIGNED), C). Should we check for the XOR inside of visitAddLike for constant folding? I believe we check for ISD::OR with no common bits in there. I'm fine if you want to do it as a separate patch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D122754



More information about the llvm-commits mailing list