5a993558c5fa52c605d984e0effdc1cd3b452476 is the first bad commit commit 5a993558c5fa52c605d984e0effdc1cd3b452476 Author: Yingwei Zheng Date: Thu Apr 17 20:44:46 2025 +0800 [InstSimplify] Fold `getelementptr inbounds null, idx -> null` (#130742) Proof: https://alive2.llvm.org/ce/z/5ZkPx- See also https://github.com/llvm/llvm-project/pull/130734 for the motivation. llvm/lib/Analysis/InstructionSimplify.cpp | 8 + .../test/CodeGen/AMDGPU/memcpy-crash-issue63986.ll | 193 +++++++++++---------- llvm/test/Transforms/InstCombine/getelementptr.ll | 37 ---- llvm/test/Transforms/InstCombine/store.ll | 3 +- llvm/test/Transforms/InstCombine/sub-gep.ll | 4 +- llvm/test/Transforms/InstSimplify/gep.ll | 59 +++++++ 6 files changed, 168 insertions(+), 136 deletions(-)