Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/python/tirx-transform/test_tir_transform_vectorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,10 @@ def main(A: T.Buffer((25,), "int32"), B: T.Buffer((25,), "float32")):
with tvm.target.Target(target):
mod = tvm.tirx.transform.VectorizeLoop()(Before)
tvm.ir.assert_structural_equal(mod, After)
if llvm_version_major() >= 21:
# LLVM 20 added vector support for llvm.lround/llvm.llround. The IR Verifier's
# "Intrinsic does not support vectors" check was removed in release/20.x, so
# compilation only fails on LLVM <= 19.
if llvm_version_major() >= 20:
tvm.compile(mod, target=target)
else:
with pytest.raises(Exception, match="Intrinsic does not support vectors"):
Expand Down
Loading