[all-commits] [llvm/llvm-project] 30a12f: [InstCombine] Fix GEP with same index comparison w...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Tue Dec 28 00:24:08 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 30a12f3f6322399185fdceffe176152a58bb84ae
https://github.com/llvm/llvm-project/commit/30a12f3f6322399185fdceffe176152a58bb84ae
Author: Nikita Popov <npopov at redhat.com>
Date: 2021-12-28 (Tue, 28 Dec 2021)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/test/Transforms/InstCombine/getelementptr.ll
M llvm/test/Transforms/InstCombine/opaque-ptr.ll
Log Message:
-----------
[InstCombine] Fix GEP with same index comparison with opaque pointers
We need to also check that the source element type is the same,
otherwise the indices may have different meaning. The added
addrspacecast demonstrates that we do still need to check the
pointer type.
More information about the All-commits
mailing list