[llvm] [mlir] [LLVM][Constants] Remove the option to disable vector ConstantFP support. (PR #197427)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed May 13 05:03:14 PDT 2026


================
@@ -1665,24 +1659,25 @@ Constant *ConstantVector::getSplat(ElementCount EC, Constant *V) {
       return ConstantPointerNull::get(VTy);
   }
 
+  if (isa<ConstantByte>(V))
+    return ConstantByte::get(V->getContext(), EC,
+                             cast<ConstantByte>(V)->getValue());
----------------
arsenm wrote:

dyn_cast instead of isa+cast 

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


More information about the llvm-commits mailing list