[PATCH] D153698: [InstCombine] canonicalize multi xor as cmp+select

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 25 09:33:35 PDT 2023


nikic added inline comments.


================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:4276
   transform(I->operands(), NewOps.begin(),
             [&](Value *V) { return V == Op ? RepOp : V; });
 
----------------
This isn't what I had in mind. Why can't we do the recursive call in here?


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

https://reviews.llvm.org/D153698



More information about the llvm-commits mailing list