Skip to content

Commit 1a09ccb

Browse files
committed
irtranslate scalable vector store
1 parent 5d3ef06 commit 1a09ccb

File tree

3 files changed

+491
-2
lines changed

3 files changed

+491
-2
lines changed

llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ bool IRTranslator::translateLoad(const User &U, MachineIRBuilder &MIRBuilder) {
14131413

14141414
bool IRTranslator::translateStore(const User &U, MachineIRBuilder &MIRBuilder) {
14151415
const StoreInst &SI = cast<StoreInst>(U);
1416-
if (DL->getTypeStoreSize(SI.getValueOperand()->getType()) == 0)
1416+
if (DL->getTypeStoreSize(SI.getValueOperand()->getType()).isZero())
14171417
return true;
14181418

14191419
ArrayRef<Register> Vals = getOrCreateVRegs(*SI.getValueOperand());

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21006,7 +21006,8 @@ bool RISCVTargetLowering::fallBackToDAGISel(const Instruction &Inst) const {
2100621006
if (Op == Instruction::Add || Op == Instruction::Sub ||
2100721007
Op == Instruction::And || Op == Instruction::Or ||
2100821008
Op == Instruction::Xor || Op == Instruction::InsertElement ||
21009-
Op == Instruction::ShuffleVector || Op == Instruction::Load)
21009+
Op == Instruction::ShuffleVector || Op == Instruction::Load ||
21010+
Op == Instruction::Store)
2101021011
return false;
2101121012

2101221013
if (Inst.getType()->isScalableTy())

0 commit comments

Comments
 (0)