[PATCH] D76116: [Verifier] Remove invalid verifier check
Serguei Katkov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 15 22:18:38 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGad643d5e93c3: [Verifier] Remove invalid verifier check (authored by skatkov).
Herald added a project: LLVM.
Changed prior to commit:
https://reviews.llvm.org/D76116?vs=250123&id=250474#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76116/new/
https://reviews.llvm.org/D76116
Files:
llvm/lib/IR/Verifier.cpp
llvm/test/Verifier/element-wise-atomic-memory-intrinsics.ll
Index: llvm/test/Verifier/element-wise-atomic-memory-intrinsics.ll
===================================================================
--- llvm/test/Verifier/element-wise-atomic-memory-intrinsics.ll
+++ llvm/test/Verifier/element-wise-atomic-memory-intrinsics.ll
@@ -9,7 +9,6 @@
; CHECK: element size of the element-wise atomic memory intrinsic must be a power of 2
call void @llvm.memcpy.element.unordered.atomic.p0i8.p0i8.i32(i8* align 4 %P, i8* align 4 %Q, i32 1, i32 3)
- ; CHECK: constant length must be a multiple of the element size in the element-wise atomic memory intrinsic
call void @llvm.memcpy.element.unordered.atomic.p0i8.p0i8.i32(i8* align 4 %P, i8* align 4 %Q, i32 7, i32 4)
; CHECK: incorrect alignment of the destination argument
@@ -36,7 +35,6 @@
; CHECK: element size of the element-wise atomic memory intrinsic must be a power of 2
call void @llvm.memmove.element.unordered.atomic.p0i8.p0i8.i32(i8* align 4 %P, i8* align 4 %Q, i32 1, i32 3)
- ; CHECK: constant length must be a multiple of the element size in the element-wise atomic memory intrinsic
call void @llvm.memmove.element.unordered.atomic.p0i8.p0i8.i32(i8* align 4 %P, i8* align 4 %Q, i32 7, i32 4)
; CHECK: incorrect alignment of the destination argument
@@ -63,7 +61,6 @@
; CHECK: element size of the element-wise atomic memory intrinsic must be a power of 2
call void @llvm.memset.element.unordered.atomic.p0i8.i32(i8* align 4 %P, i8 %V, i32 1, i32 3)
- ; CHECK: constant length must be a multiple of the element size in the element-wise atomic memory intrinsic
call void @llvm.memset.element.unordered.atomic.p0i8.i32(i8* align 4 %P, i8 %V, i32 7, i32 4)
; CHECK: incorrect alignment of the destination argument
Index: llvm/lib/IR/Verifier.cpp
===================================================================
--- llvm/lib/IR/Verifier.cpp
+++ llvm/lib/IR/Verifier.cpp
@@ -4412,15 +4412,6 @@
"must be a power of 2",
Call);
- if (auto *LengthCI = dyn_cast<ConstantInt>(AMI->getLength())) {
- uint64_t Length = LengthCI->getZExtValue();
- uint64_t ElementSize = AMI->getElementSizeInBytes();
- Assert((Length % ElementSize) == 0,
- "constant length must be a multiple of the element size in the "
- "element-wise atomic memory intrinsic",
- Call);
- }
-
auto IsValidAlignment = [&](uint64_t Alignment) {
return isPowerOf2_64(Alignment) && ElementSizeVal.ule(Alignment);
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76116.250474.patch
Type: text/x-patch
Size: 2510 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200316/4536b724/attachment.bin>
More information about the llvm-commits
mailing list