summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-22 09:09:42 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-22 09:09:42 +0000
commita032374ea0d069bff44045eee72ebdaa100ccc7a (patch)
tree15d310cc9553439cca1d1503b091719d49efaecf /llvm/test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll
parent2386c8b2211f3708cb475ffbcfb38df127559bb1 (diff)
downloadbcm5719-llvm-a032374ea0d069bff44045eee72ebdaa100ccc7a.tar.gz
bcm5719-llvm-a032374ea0d069bff44045eee72ebdaa100ccc7a.zip
Use references to attribute groups on the call/invoke instructions.
Listing all of the attributes for the callee of a call/invoke instruction is way too much and makes the IR unreadable. Use references to attributes instead. llvm-svn: 175877
Diffstat (limited to 'llvm/test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll')
-rw-r--r--llvm/test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll b/llvm/test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll
index 59a8236f132..bde52da87ae 100644
--- a/llvm/test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll
+++ b/llvm/test/Transforms/LoopUnswitch/2011-11-18-SimpleSwitch.ll
@@ -19,7 +19,7 @@
; CHECK-NEXT: i32 1, label %inc.us
; CHECK: inc.us: ; preds = %loop_begin.us
-; CHECK-NEXT: call void @incf() noreturn nounwind
+; CHECK-NEXT: call void @incf() [[NOR_NUW:#[0-9]+]]
; CHECK-NEXT: br label %loop_begin.backedge.us
; CHECK: .split: ; preds = %..split_crit_edge
@@ -40,7 +40,7 @@
; CHECK-NEXT: ]
; CHECK: dec.us3: ; preds = %loop_begin.us1
-; CHECK-NEXT: call void @decf() noreturn nounwind
+; CHECK-NEXT: call void @decf() [[NOR_NUW]]
; CHECK-NEXT: br label %loop_begin.backedge.us5
; CHECK: .split.split: ; preds = %.split..split.split_crit_edge
@@ -89,3 +89,6 @@ loop_exit:
declare void @incf() noreturn
declare void @decf() noreturn
+
+; CHECK: attributes #0 = { noreturn }
+; CHECK: attributes [[NOR_NUW]] = { noreturn nounwind }
OpenPOWER on IntegriCloud