Skip to content

Commit

Permalink
Fix incorrect name-mangling for llvm.experimental.vp.strided.load (#7654
Browse files Browse the repository at this point in the history
)

These ops are only used for RISCV codegen at present, and this one tended to only happen for complex patterns that we don't test in our very limited crosscompilation tests.
  • Loading branch information
steven-johnson committed Jun 23, 2023
1 parent 0218c9e commit 0de9eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CodeGen_LLVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2439,7 +2439,7 @@ llvm::Value *CodeGen_LLVM::codegen_vector_load(const Type &type, const std::stri
}
if (try_vector_predication_intrinsic("llvm.experimental.vp.strided.load", VPResultType(slice_type, 0),
slice_lanes, vp_slice_mask,
{VPArg(vec_ptr, 1, align_bytes), VPArg(stride, 1)})) {
{VPArg(vec_ptr, 1, align_bytes), VPArg(stride, 2)})) {
load_inst = dyn_cast<Instruction>(value);
} else {
internal_error << "Vector predicated strided load should not be requested if not supported.\n";
Expand Down

0 comments on commit 0de9eb2

Please sign in to comment.