[LoopLoadElim] Support opaque pointers
authorArthur Eubanks <aeubanks@google.com>
Wed, 9 Feb 2022 17:22:21 +0000 (09:22 -0800)
committerArthur Eubanks <aeubanks@google.com>
Wed, 9 Feb 2022 17:22:21 +0000 (09:22 -0800)
commit1bdc6eacba43c42016ac5d5f2edfd61d2867fb90
treeb52cb26df7098c7e6e2650e1790f080ceb44e894
parentff31020ee651d4867c5f1910fa0ded11cf8c2b13
[LoopLoadElim] Support opaque pointers

With typed pointers the pointer operand type checks the address space
and the load/store type. With opaque pointers we have to check the
load/store type separately.
llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
llvm/test/Transforms/LoopLoadElim/type-mismatch-opaque-ptr.ll [new file with mode: 0644]