[llvm] [GlobalISel] Combine G_ZEXT of undef -> 0 (PR #113764)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 4 18:03:59 PST 2024


Thorsten =?utf-8?q?Schütt?= <schuett at gmail.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/113764 at github.com>


https://github.com/arsenm requested changes to this pull request.

replaceInstWithConstant reads as a must-succeed operation. The match function should have the legality information. In an ideal future, the tablegen apply could automatically check the legality 

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


More information about the llvm-commits mailing list