[llvm-branch-commits] [MSAN] handle AVX vpermi2var (PR #143463)
Thurston Dang via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jun 9 19:53:45 PDT 2025
================
@@ -4175,6 +4175,25 @@ struct MemorySanitizerVisitor : public InstVisitor<MemorySanitizerVisitor> {
setShadow(&I, IRB.CreateBitCast(CI, getShadowTy(&I)));
setOriginForNaryOp(I);
}
+ // Instrument AVX permutation intrinsic.
+ // We apply the same permutation (argument index 1) to the shadows.
+ void handleAVXVpermil2var(IntrinsicInst &I) {
+ IRBuilder<> IRB(&I);
----------------
thurstond wrote:
Please add some 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/143463
More information about the llvm-branch-commits
mailing list