diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-02-18 22:15:17 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-02-19 11:56:01 +0100 |
commit | 370addb996138a9e3634899cf264c7621307617a (patch) | |
tree | e34a9e83d25ebc40c2186e66652d67d1787201e8 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 1d9f4903c6151f1b3f90a743eac339dde8ef5d29 (diff) | |
download | llvm-370addb996138a9e3634899cf264c7621307617a.zip llvm-370addb996138a9e3634899cf264c7621307617a.tar.gz llvm-370addb996138a9e3634899cf264c7621307617a.tar.bz2 |
[IR] Move willReturn() to Instruction
This moves the willReturn() helper from CallBase to Instruction,
so that it can be used in a more generic manner. This will make
it easier to fix additional passes (ADCE and BDCE), and will give
us one place to change if additional instructions should become
non-willreturn (e.g. there has been talk about handling volatile
operations this way).
I have also included the IntrinsicInst workaround directly in
here, so that it gets applied consistently. (As such this change
is not entirely NFC -- FuncAttrs will now use this as well.)
Differential Revision: https://reviews.llvm.org/D96992
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions