[llvm] [GISel][CombinerHelper] Combine and(trunc(x), trunc(y)) -> trunc(and(x, y)) (PR #89023)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 07:15:19 PDT 2024


https://github.com/arsenm requested changes to this pull request.

Needs the testing for all opcodes.

The GIsel implementation seems to be missing some of the free truncate/zext logic that the DAG version has. Arguably that would be decided by targets choosing to add the combine or not (provided that we had some more useful type predicate infrastructure)

https://github.com/llvm/llvm-project/pull/89023


More information about the llvm-commits mailing list