[all-commits] [llvm/llvm-project] e8ec42: [InstCombine] Fold icmp eq of non-inbounds gep wit...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Tue Mar 21 02:20:27 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e8ec42b80b5dc75186dca543572416f2f2e21475
https://github.com/llvm/llvm-project/commit/e8ec42b80b5dc75186dca543572416f2f2e21475
Author: Nikita Popov <npopov at redhat.com>
Date: 2023-03-21 (Tue, 21 Mar 2023)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/test/Transforms/InstCombine/compare-alloca.ll
M llvm/test/Transforms/InstCombine/icmp-gep.ll
Log Message:
-----------
[InstCombine] Fold icmp eq of non-inbounds gep with base pointer
For equality comparisons, we don't need the gep to be inbounds:
https://alive2.llvm.org/ce/z/Fe_kn2
More information about the All-commits
mailing list