[PATCH] D126591: [InstCombine] Optimise shift+and+boolean conversion pattern to simple comparison

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 28 09:56:17 PDT 2022


bcl5980 added a comment.

I'm also worry if we should canonicalize shift+and to icmp+select

> I'm not sure what impact this will have in IR, but you could try to write transforms like this in instcombine and see if that exposes other problems:
> https://alive2.llvm.org/ce/z/jA_tNb

So can we write transforms like to fix this issue?:
https://alive2.llvm.org/ce/z/DiF6Wo
https://alive2.llvm.org/ce/z/nQtvt5


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

https://reviews.llvm.org/D126591



More information about the llvm-commits mailing list