Skip to content

Commit ad0b186

Browse files
committed
Add note that maybeHandleSimpleNomemIntrinsic may incorrectly match
horizontal/pairwise intrinsics
1 parent 15e9764 commit ad0b186

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3129,6 +3129,9 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
31293129
/// fine).
31303130
///
31313131
/// Caller guarantees that this intrinsic does not access memory.
3132+
///
3133+
/// TODO: "horizontal"/"pairwise" intrinsics are often incorrectly matched by
3134+
/// by this handler.
31323135
[[maybe_unused]] bool
31333136
maybeHandleSimpleNomemIntrinsic(IntrinsicInst &I,
31343137
unsigned int trailingFlags) {

0 commit comments

Comments
 (0)