aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2023-12-11 11:06:50 +0000
committerGitHub <noreply@github.com>2023-12-11 11:06:50 +0000
commit35ebd92d3d13925c1a4c61424a7be21cf32dc4c1 (patch)
tree75931cc9d398fca8cacd855db988a015769a8769 /llvm/lib/IR
parent162248c22dcfa0674efd339f35717ea711b8e025 (diff)
downloadllvm-35ebd92d3d13925c1a4c61424a7be21cf32dc4c1.zip
llvm-35ebd92d3d13925c1a4c61424a7be21cf32dc4c1.tar.gz
llvm-35ebd92d3d13925c1a4c61424a7be21cf32dc4c1.tar.bz2
[GlobalISel] Add G_PREFETCH (#74863)
Diffstat (limited to 'llvm/lib/IR')
-rw-r--r--llvm/lib/IR/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index f137f04..c87f164 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -5374,7 +5374,7 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
Check(cast<ConstantInt>(Call.getArgOperand(1))->getZExtValue() < 2,
"rw argument to llvm.prefetch must be 0-1", Call);
Check(cast<ConstantInt>(Call.getArgOperand(2))->getZExtValue() < 4,
- "locality argument to llvm.prefetch must be 0-4", Call);
+ "locality argument to llvm.prefetch must be 0-3", Call);
Check(cast<ConstantInt>(Call.getArgOperand(3))->getZExtValue() < 2,
"cache type argument to llvm.prefetch must be 0-1", Call);
break;