[llvm] [DAG] isKnownNeverZero - add ISD::VECTOR_SHUFFLE handling (PR #186335)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 15 05:20:17 PDT 2026
================
@@ -2821,3 +2821,20 @@ define i32 @test_sext_demanded_elts(<4 x i32> %a0, ptr %p) {
ret i32 %res
}
+
+define <4 x i32> @known_nonzero_shuffle(<4 x i32> %a, <4 x i32> %b) {
----------------
RKSimon wrote:
This doesn't test the demanded elts of a shuffle - I've created #186660 - once that has gone into trunk, please merge against trunk latest, drop this test and regenerate known-never-zero.ll - it should show a codegen diff proving your patch is working
https://github.com/llvm/llvm-project/pull/186335
More information about the llvm-commits
mailing list