[llvm] [GlobalIsel] Combine G_ADD and G_SUB with constants (PR #97771)
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 7 10:06:35 PDT 2024
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>,
Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/97771 at github.com>
aemerson wrote:
Perhaps instead of `getIConstantFromReg()` we have something like `getKnownIConstantFromReg()`? So it's clear from the name that it's expecting a guaranteed constant and can therefore safely assert inside. But I'll leave the naming to your judgement.
https://github.com/llvm/llvm-project/pull/97771
More information about the llvm-commits
mailing list