[Attributor] Shortcut no-return through will-return
authorJohannes Doerfert <jdoerfert@anl.gov>
Sun, 13 Oct 2019 21:25:53 +0000 (21:25 +0000)
committerJohannes Doerfert <jdoerfert@anl.gov>
Sun, 13 Oct 2019 21:25:53 +0000 (21:25 +0000)
commit0cc2b61943ab3e4e91e831c6fe6061882f81ec09
tree7d1004ef52f0860757f44c201321308c36c72c06
parentd82385b0491385a01f5bc2216f8fc72a6521746e
[Attributor] Shortcut no-return through will-return

No-return and will-return are exclusive, assuming the latter is more
prominent we can avoid updates of the former unless will-return is not
known for sure.

llvm-svn: 374739
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/FunctionAttrs/fn_noreturn.ll
llvm/test/Transforms/FunctionAttrs/internal-noalias.ll
llvm/test/Transforms/FunctionAttrs/liveness.ll
llvm/test/Transforms/FunctionAttrs/norecurse.ll
llvm/test/Transforms/FunctionAttrs/noreturn_async.ll
llvm/test/Transforms/FunctionAttrs/noreturn_sync.ll