[llvm] [ValueTracking] Teach isGuaranteedNotToBeUndefOrPoison about splats (PR #163570)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 15 13:27:48 PDT 2025
================
@@ -7695,6 +7696,10 @@ static bool isGuaranteedNotToBeUndefOrPoison(
}
if (IsWellDefined)
return true;
+ } else if (isa<ShuffleVectorInst>(Opr) && (Splat = getSplatValue(Opr))) {
----------------
nikic wrote:
It would make sense to test this specifically for the splat case as well (in the IR test -- the unit test looks redundant to me).
https://github.com/llvm/llvm-project/pull/163570
More information about the llvm-commits
mailing list