Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PGO] detect infinite loop and form MST properly
Differential Revision: http://reviews.llvm.org/D40873 llvm-svn: 320104
- Loading branch information
Showing
6 changed files
with
56 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
; RUN: opt < %s -pgo-instr-gen -S -o - | FileCheck %s | ||
|
||
define void @foo() { | ||
entry: | ||
br label %while.body | ||
; CHECK: llvm.instrprof.increment | ||
|
||
while.body: ; preds = %entry, %while.body | ||
; CHECK: llvm.instrprof.increment | ||
call void (...) @bar() #2 | ||
br label %while.body | ||
} | ||
|
||
declare void @bar(...) | ||
|
||
|
||
attributes #0 = { nounwind } | ||
|