[llvm] [LV][EVL] Support cast instruction with EVL-vectorization (PR #108351)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 22:17:36 PDT 2024
================
@@ -1381,6 +1384,34 @@ void VPWidenCastRecipe::execute(VPTransformState &State) {
}
}
+void VPWidenCastEVLRecipe::execute(VPTransformState &State) {
+ unsigned Opcode = getOpcode();
+ auto Inst = cast<CastInst>(getUnderlyingInstr());
+ State.setDebugLocFrom(getDebugLoc());
+ assert(State.UF == 1 && "Expected only UF == 1 when vectorizing with "
----------------
LiqinWeng wrote:
Thanks
https://github.com/llvm/llvm-project/pull/108351
More information about the llvm-commits
mailing list