aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2020-01-12 00:34:38 -0600
committerJohannes Doerfert <johannes@jdoerfert.de>2020-02-12 17:36:38 -0600
commit86509e8c3b846ec8f5264be8b3f53a4bef8e83e8 (patch)
tree8724166f9155a0ad971d11a781b21e6a42dfe0fa /clang/lib/CodeGen/CodeGenFunction.cpp
parent190a11148b756e0b650ad9c5b6cf5314e9afdd0a (diff)
downloadllvm-86509e8c3b846ec8f5264be8b3f53a4bef8e83e8.zip
llvm-86509e8c3b846ec8f5264be8b3f53a4bef8e83e8.tar.gz
llvm-86509e8c3b846ec8f5264be8b3f53a4bef8e83e8.tar.bz2
[Attributor] Use assumed information to determine side-effects
We relied on wouldInstructionBeTriviallyDead before but that functions does not take assumed information, especially for calls, into account. The replacement, AAIsDead::isAssumeSideEffectFree, does. This change makes AAIsDeadCallSiteReturn more complex as we can have a dead call or only dead users. The test have been modified to include a side effect where there was none in order to keep the coverage. Reviewed By: sstefan1 Differential Revision: https://reviews.llvm.org/D73311
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions