[llvm] [ValueTracking] Teach isGuaranteedNotToBeUndefOrPoison about splats (PR #163570)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 15 08:22:10 PDT 2025


================
@@ -7678,6 +7678,7 @@ static bool isGuaranteedNotToBeUndefOrPoison(
         return true;
     }
 
+    Value *Splat;
----------------
david-arm wrote:

I think you can move this below the `if (!::canCreateUndefOrPoison` statement.

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


More information about the llvm-commits mailing list