[llvm] [IR] Add nowrap flags for trunc instruction (PR #85592)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 05:35:00 PDT 2024


================
@@ -946,6 +946,56 @@ class PossiblyNonNegInst : public CastInst {
   }
 };
 
+/// Cast Instruction that can have a nowrap flags (only trunc)
+class PossiblyNoWrapInst : public CastInst {
----------------
elhewaty wrote:

I will move it there, but shouldn't be `PossiblyNonNegInst` moved to `ZextInst` as well?

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


More information about the llvm-commits mailing list