[llvm] [GlobalISel] Combine G_ZEXT of undef -> 0 (PR #113764)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 5 09:15:38 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>
topperc wrote:
> If the match function indicates that a change is being made, but the change is never made, won't that cause the combiner to iterate repeatedly until it hits the MaxIterations limit?
As an experiment I made replaceInstWithConstant not make any change and increased the MaxIteration limit to 5. As I expected the combiner ran 5 times.
https://github.com/llvm/llvm-project/pull/113764
More information about the llvm-commits
mailing list