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 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits