[llvm-branch-commits] [MSAN] handle assorted AVX permutations (PR #143462)

Thurston Dang via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Jun 9 19:56:21 PDT 2025


================
@@ -4161,7 +4161,7 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
 
   // Instrument AVX permutation intrinsic.
   // We apply the same permutation (argument index 1) to the shadow.
-  void handleAVXVpermilvar(IntrinsicInst &I) {
+  void handleAVXPermutation(IntrinsicInst &I) {
----------------
thurstond wrote:

Since this function is being used for many more cases, please augment it with assertions that check whether the instruction is suitable for this handler:
- number of operands
- type and size of each operand
- relation of input and output operands

https://github.com/llvm/llvm-project/pull/143462


More information about the llvm-branch-commits mailing list