[llvm-branch-commits] [llvm] [AMDGPU] Precommit si-fold-bitmask.mir (PR #131310)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Mar 22 04:54:05 PDT 2025


arsenm wrote:

> I tried it but the DAG immediately transforms (and x, 0xFF) into a zext and it seems pretty stubborn about it as it's a basic transform.

Then isUnneededShiftMask should probably recognize more forms of the pattern. I'd assume this only forms the zext if it is legal

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


More information about the llvm-branch-commits mailing list