Skip to content

Commit a03b95f

Browse files
committed
GISel support is in progress for G_LOAD
1 parent d1e162e commit a03b95f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20532,11 +20532,12 @@ unsigned RISCVTargetLowering::getCustomCtpopCost(EVT VT,
2053220532

2053320533
bool RISCVTargetLowering::fallBackToDAGISel(const Instruction &Inst) const {
2053420534

20535-
// GISel support is in progress or complete for G_ADD, G_SUB, G_AND, G_OR, and
20536-
// G_XOR.
20535+
// GISel support is in progress or complete for G_ADD, G_SUB, G_AND, G_OR,
20536+
// G_XOR, and G_LOAD
2053720537
unsigned Op = Inst.getOpcode();
2053820538
if (Op == Instruction::Add || Op == Instruction::Sub ||
20539-
Op == Instruction::And || Op == Instruction::Or || Op == Instruction::Xor)
20539+
Op == Instruction::And || Op == Instruction::Or ||
20540+
Op == Instruction::Xor || Op == Instruction::Load)
2054020541
return false;
2054120542

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

0 commit comments

Comments
 (0)