[PATCH] D115629: [RISCV] Use binvi and bexti to fold and (not (srl X,  C)), 1
    Craig Topper via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Dec 13 10:19:37 PST 2021
    
    
  
craig.topper added a comment.
Have you seen real cases of this pattern? InstCombine canonicalizes this to (xor (and (srl X, C), 1), 1) before we get to SelectionDAG.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115629/new/
https://reviews.llvm.org/D115629
    
    
More information about the llvm-commits
mailing list