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

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 30 09:02:46 PDT 2025


dtcxzyw wrote:

> We've found that this also breaks SDL2, specifically somewhere in [SDL_render_gles2.c](https://github.com/libsdl-org/SDL/blob/release-2.32.x/src/render/opengles2/SDL_render_gles2.c). Unfortunately I haven't been able to narrow down the failure yet, I didn't see any obvious use of calculating offsets from nullptr or anything like that. The fix in #137851 didn't work for it.

I will have a look.


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


More information about the llvm-commits mailing list