[llvm] [VPlan] Preserve IR flags when widening casts (PR #115373)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 02:10:16 PST 2024


================
@@ -1484,6 +1484,8 @@ void VPWidenCastRecipe::execute(VPTransformState &State) {
   Value *Cast = Builder.CreateCast(Instruction::CastOps(Opcode), A, DestTy);
----------------
fhahn wrote:

Would be nice to have a way to specify the flags at construction rather than having to add them after the fact, but it looks like the builder interface hasn't been updated yet to take the flags at construction :(

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


More information about the llvm-commits mailing list