[llvm] [IRTranslator][RISCV] Support scalable vector zeroinitializer. (PR #108666)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 13 23:29:28 PDT 2024
================
@@ -3528,8 +3528,11 @@ bool IRTranslator::translate(const Constant &C, Register Reg) {
Register AddrDisc = getOrCreateVReg(*CPA->getAddrDiscriminator());
EntryBuilder->buildConstantPtrAuth(Reg, CPA, Addr, AddrDisc);
} else if (auto CAZ = dyn_cast<ConstantAggregateZero>(&C)) {
- if (!isa<FixedVectorType>(CAZ->getType()))
- return false;
+ if (!isa<FixedVectorType>(CAZ->getType())) {
----------------
tschuett wrote:
I don't like the not, but ...
`isa<ScalableVectorType>(CAZ->getType())`
https://github.com/llvm/llvm-project/pull/108666
More information about the llvm-commits
mailing list