[llvm] [X86] Remove redundant TEST after shifts when count is non-zero (PR #169069)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 26 06:02:03 PST 2025
================
@@ -356,3 +356,84 @@ define i32 @shl_var_self_select_amt_never_zero(i32 %a0, i32 %a1, i32 %a2, i32 %a
%r = select i1 %c, i32 %s, i32 %a2
ret i32 %r
}
+
+define i1 @shl_optsize_nonzero_removes_test(i32 %val, i32 %amt) optsize {
----------------
RKSimon wrote:
(style) If you search further up this test file you''l find some very similar functions - it easier to find matching tests if you keep them close together with similar test names (traditionally we just put a _optsize postfix). Might be worth mixing some variants with minsize instead of optsize.
https://github.com/llvm/llvm-project/pull/169069
More information about the llvm-commits
mailing list