summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/CodeGenIntrinsics.h
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2018-11-14 19:53:41 +0000
committerVedant Kumar <vsk@apple.com>2018-11-14 19:53:41 +0000
commit808e157356234ecc865c0baecb2e22df5e4d54a8 (patch)
tree709d3fcfa3a621d154b82f49755bfb053498ed18 /llvm/utils/TableGen/CodeGenIntrinsics.h
parentc0830f55779adf07809f6b1af4351c3a2f293dfc (diff)
downloadbcm5719-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.h3
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;
OpenPOWER on IntegriCloud