[all-commits] [llvm/llvm-project] 6c7fd7: [InstSimplify] Fold gep inbounds undef to undef in...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jul 6 05:59:39 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c7fd723c460dee6546b3b876a0dfee8c996d7d8
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-07-06 (Thu, 06 Jul 2023)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/gep.ll

  Log Message:
  [InstSimplify] Fold gep inbounds undef to undef instead of poison

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.

Differential Revision: https://reviews.llvm.org/D154215

More information about the All-commits mailing list