[llvm] [IPO] Prevent removal of some convergent attr (PR #134863)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 11 00:53:18 PDT 2025
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>,
Nathan =?utf-8?q?Gauër?= <brioche at google.com>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/134863 at github.com>
https://github.com/arsenm commented:
This needs to consider external call users, but we shouldn't really need to look at all the users of the function.
I'm wondering if it's even worth removing the convergent attribute. The design is just broken. If we're going to require it to avoid failing the verifier, we probably should just never strip it. So either remove the verifier check, or never remove convergent.
We would be in a more holistically correct place if we propagated noconvergent (we could do this even prior to changing the IR default, and have the confusing convergent + noconvergent combo)
https://github.com/llvm/llvm-project/pull/134863
More information about the llvm-commits
mailing list