[llvm] [VPlan] Preserve trunc nuw/nsw in VPRecipeWithIRFlags (PR #144700)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 23 05:23:56 PDT 2025
================
@@ -612,6 +613,13 @@ class VPIRFlags {
WrapFlagsTy(bool HasNUW, bool HasNSW) : HasNUW(HasNUW), HasNSW(HasNSW) {}
};
+ struct TruncFlagsTy {
----------------
fhahn wrote:
It might be enough to add a new op-type for trunc, but still use `WrapFlagsTy` to store the flags. This should keep the symmetry with LLVM IR in terms of instruction classification and be enough to guard against querying new flags for OverflowingBinOp for Truncs.
https://github.com/llvm/llvm-project/pull/144700
More information about the llvm-commits
mailing list