[llvm-bugs] [Bug 49100] New: [CostModel] Assertion "Vector argument does not match VF" failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Feb 8 16:02:13 PST 2021


https://bugs.llvm.org/show_bug.cgi?id=49100

            Bug ID: 49100
           Summary: [CostModel]  Assertion "Vector argument does not match
                    VF" failed.
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: paulsson at linux.vnet.ibm.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 24498
  --> https://bugs.llvm.org/attachment.cgi?id=24498&action=edit
reduced testcase

502a67d "[CostModel] Remove VF from IntrinsicCostAttributes" seems to be
causing the SystemZ build of the test-suite to fail
(SingleSource/UnitTests/matrix-types-spec.cpp).

getUserCost() is called with the instruction

%i6 = tail call <275 x double>
@llvm.matrix.multiply.v275f64.v475f64.v209f64(<475 x double> %i2, <209 x
double> undef, i32 25, i32 19, i32 11)

The return type is <275 x double>, but the argument type is <475 x double>. The
assertion in getOperandsScalarizationOverhead() is using VF==275, which is the
VF of the return type which does not match that of the argument...

opt -mtriple=s390x-linux-gnu -mcpu=z10 -O3 tc.ll -S -o -

llvm-project/llvm/include/llvm/CodeGen/BasicTTIImpl.h:630: unsigned int
llvm::BasicTTIImplBase<T>::getOperandsScalarizationOverhead(llvm::ArrayRef<const
llvm::Value*>, unsigned int) [with T = llvm::SystemZTTIImpl]: Asser
tion `(VF == 1 || VF == cast<FixedVectorType>(VecTy)->getNumElements()) &&
"Vector argument does not match VF"' failed.

#8 0x000000000210124a
llvm::BasicTTIImplBase<llvm::SystemZTTIImpl>::getOperandsScalarizationOverhead
#26 0x0000000003261fca llvm::InlinerPass::run

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210209/4ba28c57/attachment.html>


More information about the llvm-bugs mailing list