[llvm] [GlobalIsel] Combine ADDO (PR #82927)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 25 11:06:28 PST 2024


================
@@ -429,6 +431,23 @@ class GAddSubCarryOut : public GBinOpCarryOut {
   }
 };
 
+/// Represents overflowing add operations.
+/// G_UADDO, G_SADDO
+class GAddCarryOut : public GBinOpCarryOut {
----------------
tschuett wrote:

The common pattern is to assert that only the expected opcode is in `MI`. I use `cast<GAddCarryOut>`. I don't want unnoticed sub to come in.

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


More information about the llvm-commits mailing list