[llvm] [VPlan] Preserve trunc nuw/nsw in VPRecipeWithIRFlags (PR #144700)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 23 06:34:47 PDT 2025
================
@@ -612,6 +613,13 @@ class VPIRFlags {
WrapFlagsTy(bool HasNUW, bool HasNSW) : HasNUW(HasNUW), HasNSW(HasNSW) {}
};
+ struct TruncFlagsTy {
----------------
lukel97 wrote:
I tried this but the constructors take in WrapFlagsTy etc. and differentiate the type based on this. I tried adding a boolean `isTrunc` flag for that specific constructor but it seemed kind of hairy. What do you think?
https://github.com/llvm/llvm-project/pull/144700
More information about the llvm-commits
mailing list