================ @@ -11133,6 +11146,7 @@ calculateByteProvider(const SDValue &Op, unsigned Index, unsigned Depth, } case AMDGPUISD::PERM: { + if (IsVec) return std::nullopt; ---------------- arsenm wrote: new line https://github.com/llvm/llvm-project/pull/70240