This is an archive of the discontinued LLVM Phabricator instance.

[msan] Fix bugs when instrument x86.avx512*_cvt* intrinsics.
ClosedPublic

Authored by pengfei on Nov 26 2020, 11:16 PM.

Details

Summary

Scalar intrinsics x86.avx512*_cvt* have an extra rounding mode operand.
We can directly ignore it to reuse the SSE/AVX math.
This fix the bug https://bugs.llvm.org/show_bug.cgi?id=48298.

Diff Detail

Event Timeline

pengfei created this revision.Nov 26 2020, 11:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 26 2020, 11:16 PM
pengfei requested review of this revision.Nov 26 2020, 11:16 PM
craig.topper added inline comments.Nov 26 2020, 11:17 PM
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
2738

HasRoundingMode would be more clear.

llvm/utils/FileCheck/FileCheck.cpp
81

Unrelated change?

pengfei updated this revision to Diff 307961.Nov 26 2020, 11:19 PM

Revert unrelated change.

pengfei updated this revision to Diff 307962.Nov 26 2020, 11:23 PM

Adress Craig's comments.

pengfei updated this revision to Diff 307963.Nov 26 2020, 11:25 PM

Fix a missed change.

pengfei added inline comments.Nov 26 2020, 11:27 PM
llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
2738

Yes, it's much better. Thanks.

Harbormaster completed remote builds in B80299: Diff 307961.
This revision is now accepted and ready to land.Nov 26 2020, 11:58 PM