aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-03-03 11:05:31 +0100
committerNikita Popov <npopov@redhat.com>2022-03-03 11:07:39 +0100
commitc1b9667148105d99f4792b46805b6a4d2aea4a6e (patch)
tree5f1607fa4b333337305720499ccabc820d5bef81 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent6b3b3ef344504334f43afe76c805d2e6e7b587e9 (diff)
downloadllvm-c1b9667148105d99f4792b46805b6a4d2aea4a6e.zip
llvm-c1b9667148105d99f4792b46805b6a4d2aea4a6e.tar.gz
llvm-c1b9667148105d99f4792b46805b6a4d2aea4a6e.tar.bz2
[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.
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions