diff options
| author | Vedant Kumar <vsk@apple.com> | 2018-11-14 19:53:41 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2018-11-14 19:53:41 +0000 |
| commit | 808e157356234ecc865c0baecb2e22df5e4d54a8 (patch) | |
| tree | 709d3fcfa3a621d154b82f49755bfb053498ed18 /llvm/utils/TableGen/CodeGenIntrinsics.h | |
| parent | c0830f55779adf07809f6b1af4351c3a2f293dfc (diff) | |
| download | bcm5719-llvm-808e157356234ecc865c0baecb2e22df5e4d54a8.tar.gz bcm5719-llvm-808e157356234ecc865c0baecb2e22df5e4d54a8.zip | |
Mark @llvm.trap cold
A call to @llvm.trap can be expected to be cold (i.e. unlikely to be
reached in a normal program execution).
Outlining paths which unconditionally trap is an important memory
saving. As the hot/cold splitting pass (imho) should not treat all
noreturn calls as cold, explicitly mark @llvm.trap cold so that it can
be outlined.
Split out of https://reviews.llvm.org/D54244.
Differential Revision: https://reviews.llvm.org/D54329
llvm-svn: 346885
Diffstat (limited to 'llvm/utils/TableGen/CodeGenIntrinsics.h')
| -rw-r--r-- | llvm/utils/TableGen/CodeGenIntrinsics.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenIntrinsics.h b/llvm/utils/TableGen/CodeGenIntrinsics.h index 5d071595912..9487a79c143 100644 --- a/llvm/utils/TableGen/CodeGenIntrinsics.h +++ b/llvm/utils/TableGen/CodeGenIntrinsics.h @@ -124,6 +124,9 @@ struct CodeGenIntrinsic { /// True if the intrinsic is no-return. bool isNoReturn; + /// True if the intrinsic is cold. + bool isCold; + /// True if the intrinsic is marked as convergent. bool isConvergent; |

