[llvm] [X86] Remove redundant TEST after shifts when count is non-zero (PR #169069)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 14 17:45:04 PST 2025


================
@@ -275,6 +275,33 @@ define i32 @ashr_var_amt_never_zero(i32 %a0, i32 %a1, i32 %a2, i32 %a3) {
   ret i32 %r
 }
 
+define i1 @ashr_nonezero_removes_test_optsize(i32 %val, i32 %amt) optsize {
----------------
phoebewang wrote:

Does optsize matter here? I don't see any special code for it.

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


More information about the llvm-commits mailing list