This is an archive of the discontinued LLVM Phabricator instance.

[InstSimplify] Fold gep inbounds undef to undef instead of poison
ClosedPublic

Authored by nikic on Jun 30 2023, 6:34 AM.

Details

Summary

With the semantics change from D154051, it is no longer valid to fold gep inbounds undef to poison (unless we know the index is non-zero). Fold it to undef instead.

Depends on D154051.

Diff Detail