diff options
author | Eric Christopher <echristo@gmail.com> | 2019-04-17 02:12:23 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2019-04-17 02:12:23 +0000 |
commit | a86343512845c9c1fdbac865fea88aa5fce7142a (patch) | |
tree | 666fc6353de19ad8b00e56b67edd33f24104e4a7 /llvm/test/Transforms/Inline/inline-cold-callsite.ll | |
parent | 7f8ca6e3679b3af951cb7a4b1377edfaa3244b93 (diff) | |
download | bcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.tar.gz bcm5719-llvm-a86343512845c9c1fdbac865fea88aa5fce7142a.zip |
Temporarily Revert "Add basic loop fusion pass."
As it's causing some bot failures (and per request from kbarton).
This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda.
llvm-svn: 358546
Diffstat (limited to 'llvm/test/Transforms/Inline/inline-cold-callsite.ll')
-rw-r--r-- | llvm/test/Transforms/Inline/inline-cold-callsite.ll | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/llvm/test/Transforms/Inline/inline-cold-callsite.ll b/llvm/test/Transforms/Inline/inline-cold-callsite.ll deleted file mode 100644 index 50dd55d62ed..00000000000 --- a/llvm/test/Transforms/Inline/inline-cold-callsite.ll +++ /dev/null @@ -1,47 +0,0 @@ - -; RUN: opt < %s -passes='require<profile-summary>,cgscc(inline)' -inline-threshold=100 -inline-cold-callsite-threshold=0 -S | FileCheck %s - -; This tests that a cold callsite gets the inline-cold-callsite-threshold -; and does not get inlined. Another callsite to an identical callee that -; is not cold gets inlined because cost is below the inline-threshold. - -define void @callee() { - call void @extern() - call void @extern() - ret void -} - -declare void @extern() -declare i1 @ext(i32) - -; CHECK-LABEL: caller -define i32 @caller(i32 %n) { -entry: - %cmp4 = icmp sgt i32 %n, 0 - br i1 %cmp4, label %for.body, label %for.cond.cleanup - -for.cond.cleanup: - ret i32 0 - -for.body: - %i.05 = phi i32 [ %inc, %for.inc ], [ 0, %entry ] -; CHECK: %call = tail call - %call = tail call zeroext i1 @ext(i32 %i.05) -; CHECK-NOT: call void @callee -; CHECK-NEXT: call void @extern - call void @callee() - br i1 %call, label %cold, label %for.inc, !prof !0 - -cold: -; CHECK: call void @callee - call void @callee() - br label %for.inc - -for.inc: - %inc = add nuw nsw i32 %i.05, 1 - %exitcond = icmp eq i32 %inc, %n - br i1 %exitcond, label %for.cond.cleanup, label %for.body -} - - -!0 = !{!"branch_weights", i32 1, i32 2000} |