[PATCH] D124709: [InstCombine][NFC] Add baseline tests for folds of ((A&B)^C)|B

Alexander Shaposhnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 12:35:21 PDT 2022


alexander-shaposhnikov added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/and-xor-or.ll:171
 
+; ((x & y) + z) | y -> (z | y)
+
----------------
spatel wrote:
> The use of "+" to represent "xor" confused me. I'd go with the more usual C operator - "^".
thanks, will switch to "^" before committing 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D124709



More information about the llvm-commits mailing list