[PATCH] D139363: [SDAG] try to convert bit set/clear to signbit test when trunc is free

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 07:18:46 PST 2022


spatel added a comment.

In D139363#3972195 <https://reviews.llvm.org/D139363#3972195>, @RKSimon wrote:

> What about if we limited this to just feeding select / brcond ?

There's a maze of potential setcc and shift/logic folds, but I think this is the right match (more limited for now at least by the legality checks).

It should be better (less likely to miss folds) to adjust the larger pattern matches that reduce and/or of setcc via shifts/masks to recognize this form if needed.


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

https://reviews.llvm.org/D139363



More information about the llvm-commits mailing list