[all-commits] [llvm/llvm-project] 5cb20e: [InstCombine] Make indexed compare fold opaque ptr...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Jun 24 13:33:22 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5cb20ef8a235c2027489a196bba27630ca21a00b
https://github.com/llvm/llvm-project/commit/5cb20ef8a235c2027489a196bba27630ca21a00b
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2021-06-24 (Thu, 24 Jun 2021)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
M llvm/test/Transforms/InstCombine/indexed-gep-compares.ll
Log Message:
-----------
[InstCombine] Make indexed compare fold opaque ptr compatible
Rather than relying on pointer type equality (which, for a change,
is silently incorrect with opaque pointers) check that the GEP
source element types match.
More information about the All-commits
mailing list