[all-commits] [llvm/llvm-project] 7bb7fa: [OpaquePtr] Support changing load type in InstCombine
Nikita Popov via All-commits
all-commits at lists.llvm.org
Tue Jun 22 12:16:32 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7bb7fa12e73bd3c9fb66f05825758d729dd96ba5
https://github.com/llvm/llvm-project/commit/7bb7fa12e73bd3c9fb66f05825758d729dd96ba5
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2021-06-22 (Tue, 22 Jun 2021)
Changed paths:
M llvm/include/llvm/IR/Type.h
M llvm/lib/IR/Type.cpp
M llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
M llvm/test/Transforms/InstCombine/opaque-ptr.ll
Log Message:
-----------
[OpaquePtr] Support changing load type in InstCombine
When the load type is changed to ptr, we need the load pointer type
to also be ptr, because it's not allowed to create a pointer to an
opaque pointer. This is achieved by adjusting the getPointerTo() API
to return an opaque pointer for an opaque pointer base type.
Differential Revision: https://reviews.llvm.org/D104718
More information about the All-commits
mailing list