aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJan Voung <jvoung@chromium.org>2013-06-12 17:52:27 -0700
committerJan Voung <jvoung@chromium.org>2013-06-12 17:52:27 -0700
commit73d81b129dc97eebe2403573e0ebbb4960d1feed (patch)
tree46065433a4e4506692472b79225c23b6b156dcd8 /test
parent7f93d354387d7fc2fbdc59bc065d6c7d6ab6c9a0 (diff)
Move llvm.expect from dev to blacklist. Convert with -lower-expect.
The backend currently treats llvm.expect as a nop pass-through. Until it becomes more useful, we don't need it in stable bitcode. It sounds like the backend may prefer to use the !prof metadata instead. The -lower-expect pass will convert it into branch weights, which can be consumed by the middle end optimizer's block placement pass. It is already converted to !prof metadata when clang is run with -O2, but not when clang is run at -O0. Also move the llvm.frameaddress from the dev part of the intrinsics test to the disallowed part of the test. BUG=https://code.google.com/p/nativeclient/issues/detail?id=3378 R=mseaborn@chromium.org Review URL: https://codereview.chromium.org/16882002
Diffstat (limited to 'test')
-rw-r--r--test/NaCl/PNaClABI/intrinsics.ll12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/NaCl/PNaClABI/intrinsics.ll b/test/NaCl/PNaClABI/intrinsics.ll
index e5fe6116ed..e8624fe813 100644
--- a/test/NaCl/PNaClABI/intrinsics.ll
+++ b/test/NaCl/PNaClABI/intrinsics.ll
@@ -13,12 +13,6 @@
; DEV-NOT: Function llvm.dbg.value is a disallowed LLVM intrinsic
declare void @llvm.dbg.value(metadata, i64, metadata)
-; CHECK: Function llvm.frameaddress is a disallowed LLVM intrinsic
-declare i8* @llvm.frameaddress(i32 %level)
-
-; CHECK: Function llvm.returnaddress is a disallowed LLVM intrinsic
-declare i8* @llvm.returnaddress(i32 %level)
-
; ===================================
; Always allowed intrinsics.
@@ -74,3 +68,9 @@ declare void @llvm.lifetime.start(i64, i8* nocapture)
; CHECK: Function llvm.lifetime.end is a disallowed LLVM intrinsic
declare void @llvm.lifetime.end(i64, i8* nocapture)
+
+; CHECK: Function llvm.frameaddress is a disallowed LLVM intrinsic
+declare i8* @llvm.frameaddress(i32 %level)
+
+; CHECK: Function llvm.returnaddress is a disallowed LLVM intrinsic
+declare i8* @llvm.returnaddress(i32 %level)