[llvm] [IR][PatternMatch] Only accept poison in getSplatValue() (PR #89159)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 17 22:38:37 PDT 2024


================
@@ -433,7 +433,7 @@ template <typename Predicate> struct apf_pred_ty : public Predicate {
     if (V->getType()->isVectorTy())
       if (const auto *C = dyn_cast<Constant>(V))
         if (auto *CI = dyn_cast_or_null<ConstantFP>(
-                C->getSplatValue(/* AllowUndef */ true)))
+                C->getSplatValue(/* AllowPoison */ true)))
----------------
nikic wrote:

I think so, but not as part of this change.

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


More information about the llvm-commits mailing list