[llvm] [LLVM][IR] Add native vector support to ConstantInt & ConstantFP. (PR #74502)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 19 04:03:10 PST 2024


================
@@ -1384,6 +1440,16 @@ Constant *ConstantVector::getImpl(ArrayRef<Constant*> V) {
 
 Constant *ConstantVector::getSplat(ElementCount EC, Constant *V) {
   if (!EC.isScalable()) {
+    // Maintain special handling of zero.
----------------
nikic wrote:

Just wondering whether this is something you want to keep long term or just initially?

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


More information about the llvm-commits mailing list