1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00
Eric Christopher a62270de2c Revert "Temporarily Revert "Add basic loop fusion pass.""
The reversion apparently deleted the test/Transforms directory.

Will be re-reverting again.

llvm-svn: 358552
2019-04-17 04:52:47 +00:00

22 lines
597 B
LLVM

; RUN: opt < %s -instrprof -S -o - -do-counter-promotion=1 | FileCheck %s
; CHECK: store
@__profn_foo = private constant [3 x i8] c"foo"
define void @foo() {
entry:
br label %while.body
while.body: ; preds = %entry, %while.body
call void @llvm.instrprof.increment(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @__profn_foo, i32 0, i32 0), i64 14813359968, i32 1, i32 0)
call void (...) @bar() #2
br label %while.body
}
declare void @bar(...)
declare void @llvm.instrprof.increment(i8*, i64, i32, i32) #0
attributes #0 = { nounwind }