Skip to content

Commit 0cd2bf3

Browse files
authored
ValueTracking: Correct undef handling for constant FP vectors (#92557)
Treat undef as unknown, and poison as ignorable.
1 parent 3f33c4c commit 0cd2bf3

File tree

5 files changed

+135
-75
lines changed

5 files changed

+135
-75
lines changed

llvm/lib/Analysis/ValueTracking.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -4751,7 +4751,7 @@ void computeKnownFPClass(const Value *V, const APInt &DemandedElts,
47514751
Known = KnownFPClass();
47524752
return;
47534753
}
4754-
if (isa<UndefValue>(Elt))
4754+
if (isa<PoisonValue>(Elt))
47554755
continue;
47564756
auto *CElt = dyn_cast<ConstantFP>(Elt);
47574757
if (!CElt) {

0 commit comments

Comments
 (0)