[llvm] [InstSimplify] Fold `getelementptr inbounds null, idx -> null` (PR #130742)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 28 08:13:30 PDT 2025


dtcxzyw wrote:

> I guess we could add yet another hack to work around this case as well...

We can always add another workaround if the constant null exists in LHS expr :(
Or just switch to the original version https://github.com/llvm/llvm-project/commit/02065e86c63ab3fbdefd2ce6e963ffeec96e6a24


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


More information about the llvm-commits mailing list