[all-commits] [llvm/llvm-project] c1b966: [InstCombine] Support opaque pointers in callee bi...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Mar 3 02:07:55 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c1b9667148105d99f4792b46805b6a4d2aea4a6e
https://github.com/llvm/llvm-project/commit/c1b9667148105d99f4792b46805b6a4d2aea4a6e
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-03-03 (Thu, 03 Mar 2022)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
M llvm/test/Transforms/InstCombine/opaque-ptr.ll
Log Message:
-----------
[InstCombine] Support opaque pointers in callee bitcast fold
To make this actually trigger, we also need to check whether the
function types differ, which is a hidden cast under opaque pointers.
The transform is somewhat less relevant there because it is
primarily about pointer bitcasts, but it can also happen with other
bit- or pointer-castable types.
Byval handling is easier with opaque pointers because there is no
need to adjust the byval type, we only need to make sure that it's
still a pointer.
More information about the All-commits
mailing list