You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.167
Former-commit-id: 289509151e0fee68a1b591a20c9f109c3c789d3a
This commit is contained in:
parent
e19d552987
commit
b084638f15
@ -1,21 +0,0 @@
|
||||
void bar();
|
||||
void foo() { bar(); }
|
||||
|
||||
#include "or.h"
|
||||
|
||||
void Test(int *res, int *c, int *d, int *p, int n) {
|
||||
int i;
|
||||
|
||||
#pragma clang loop vectorize(assume_safety)
|
||||
for (i = 0; i < 1600; i++) {
|
||||
res[i] = (p[i] == 0) ? res[i] : res[i] + d[i];
|
||||
}
|
||||
|
||||
for (i = 0; i < 16; i++) {
|
||||
res[i] = (p[i] == 0) ? res[i] : res[i] + d[i];
|
||||
}
|
||||
|
||||
foo();
|
||||
|
||||
foo(); bar(); foo();
|
||||
}
|
@ -1,16 +0,0 @@
|
||||
void TestH(int *res, int *c, int *d, int *p, int n) {
|
||||
int i;
|
||||
|
||||
#pragma clang loop vectorize(assume_safety)
|
||||
for (i = 0; i < 1600; i++) {
|
||||
res[i] = (p[i] == 0) ? res[i] : res[i] + d[i];
|
||||
}
|
||||
|
||||
for (i = 0; i < 16; i++) {
|
||||
res[i] = (p[i] == 0) ? res[i] : res[i] + d[i];
|
||||
}
|
||||
|
||||
foo();
|
||||
|
||||
foo(); bar(); foo();
|
||||
}
|
@ -1,227 +0,0 @@
|
||||
--- !Missed
|
||||
Pass: inline
|
||||
Name: NoDefinition
|
||||
DebugLoc: { File: basic/or.c, Line: 2, Column: 14 }
|
||||
Function: foo
|
||||
Args:
|
||||
- Callee: bar
|
||||
- String: ' will not be inlined into '
|
||||
- Caller: foo
|
||||
- String: ' because its definition is unavailable'
|
||||
...
|
||||
--- !Missed
|
||||
Pass: inline
|
||||
Name: NoDefinition
|
||||
DebugLoc: { File: basic/or.h, Line: 15, Column: 10 }
|
||||
Function: TestH
|
||||
Args:
|
||||
- Callee: bar
|
||||
- String: ' will not be inlined into '
|
||||
- Caller: TestH
|
||||
- String: ' because its definition is unavailable'
|
||||
...
|
||||
--- !Analysis
|
||||
Pass: inline
|
||||
Name: CanBeInlined
|
||||
DebugLoc: { File: basic/or.h, Line: 13, Column: 3 }
|
||||
Function: TestH
|
||||
Args:
|
||||
- Callee: foo
|
||||
- String: ' can be inlined into '
|
||||
- Caller: TestH
|
||||
- String: ' with cost='
|
||||
- Cost: '30'
|
||||
- String: ' (threshold='
|
||||
- Threshold: '412'
|
||||
- String: ')'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: inline
|
||||
Name: Inlined
|
||||
DebugLoc: { File: basic/or.h, Line: 13, Column: 3 }
|
||||
Function: TestH
|
||||
Args:
|
||||
- Callee: foo
|
||||
- String: ' inlined into '
|
||||
- Caller: TestH
|
||||
...
|
||||
--- !Analysis
|
||||
Pass: inline
|
||||
Name: CanBeInlined
|
||||
DebugLoc: { File: basic/or.h, Line: 15, Column: 3 }
|
||||
Function: TestH
|
||||
Args:
|
||||
- Callee: foo
|
||||
- String: ' can be inlined into '
|
||||
- Caller: TestH
|
||||
- String: ' with cost='
|
||||
- Cost: '30'
|
||||
- String: ' (threshold='
|
||||
- Threshold: '412'
|
||||
- String: ')'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: inline
|
||||
Name: Inlined
|
||||
DebugLoc: { File: basic/or.h, Line: 15, Column: 3 }
|
||||
Function: TestH
|
||||
Args:
|
||||
- Callee: foo
|
||||
- String: ' inlined into '
|
||||
- Caller: TestH
|
||||
...
|
||||
--- !Analysis
|
||||
Pass: inline
|
||||
Name: CanBeInlined
|
||||
DebugLoc: { File: basic/or.h, Line: 15, Column: 17 }
|
||||
Function: TestH
|
||||
Args:
|
||||
- Callee: foo
|
||||
- String: ' can be inlined into '
|
||||
- Caller: TestH
|
||||
- String: ' with cost='
|
||||
- Cost: '30'
|
||||
- String: ' (threshold='
|
||||
- Threshold: '412'
|
||||
- String: ')'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: inline
|
||||
Name: Inlined
|
||||
DebugLoc: { File: basic/or.h, Line: 15, Column: 17 }
|
||||
Function: TestH
|
||||
Args:
|
||||
- Callee: foo
|
||||
- String: ' inlined into '
|
||||
- Caller: TestH
|
||||
...
|
||||
--- !Passed
|
||||
Pass: loop-unroll
|
||||
Name: FullyUnrolled
|
||||
DebugLoc: { File: basic/or.h, Line: 9, Column: 3 }
|
||||
Function: TestH
|
||||
Args:
|
||||
- String: 'completely unrolled loop with '
|
||||
- UnrollCount: '16'
|
||||
- String: ' iterations'
|
||||
...
|
||||
--- !Missed
|
||||
Pass: inline
|
||||
Name: NoDefinition
|
||||
DebugLoc: { File: basic/or.c, Line: 20, Column: 10 }
|
||||
Function: Test
|
||||
Args:
|
||||
- Callee: bar
|
||||
- String: ' will not be inlined into '
|
||||
- Caller: Test
|
||||
- String: ' because its definition is unavailable'
|
||||
...
|
||||
--- !Analysis
|
||||
Pass: inline
|
||||
Name: CanBeInlined
|
||||
DebugLoc: { File: basic/or.c, Line: 18, Column: 3 }
|
||||
Function: Test
|
||||
Args:
|
||||
- Callee: foo
|
||||
- String: ' can be inlined into '
|
||||
- Caller: Test
|
||||
- String: ' with cost='
|
||||
- Cost: '30'
|
||||
- String: ' (threshold='
|
||||
- Threshold: '412'
|
||||
- String: ')'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: inline
|
||||
Name: Inlined
|
||||
DebugLoc: { File: basic/or.c, Line: 18, Column: 3 }
|
||||
Function: Test
|
||||
Args:
|
||||
- Callee: foo
|
||||
- String: ' inlined into '
|
||||
- Caller: Test
|
||||
...
|
||||
--- !Analysis
|
||||
Pass: inline
|
||||
Name: CanBeInlined
|
||||
DebugLoc: { File: basic/or.c, Line: 20, Column: 3 }
|
||||
Function: Test
|
||||
Args:
|
||||
- Callee: foo
|
||||
- String: ' can be inlined into '
|
||||
- Caller: Test
|
||||
- String: ' with cost='
|
||||
- Cost: '30'
|
||||
- String: ' (threshold='
|
||||
- Threshold: '412'
|
||||
- String: ')'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: inline
|
||||
Name: Inlined
|
||||
DebugLoc: { File: basic/or.c, Line: 20, Column: 3 }
|
||||
Function: Test
|
||||
Args:
|
||||
- Callee: foo
|
||||
- String: ' inlined into '
|
||||
- Caller: Test
|
||||
...
|
||||
--- !Analysis
|
||||
Pass: inline
|
||||
Name: CanBeInlined
|
||||
DebugLoc: { File: basic/or.c, Line: 20, Column: 17 }
|
||||
Function: Test
|
||||
Args:
|
||||
- Callee: foo
|
||||
- String: ' can be inlined into '
|
||||
- Caller: Test
|
||||
- String: ' with cost='
|
||||
- Cost: '30'
|
||||
- String: ' (threshold='
|
||||
- Threshold: '412'
|
||||
- String: ')'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: inline
|
||||
Name: Inlined
|
||||
DebugLoc: { File: basic/or.c, Line: 20, Column: 17 }
|
||||
Function: Test
|
||||
Args:
|
||||
- Callee: foo
|
||||
- String: ' inlined into '
|
||||
- Caller: Test
|
||||
...
|
||||
--- !Passed
|
||||
Pass: loop-unroll
|
||||
Name: FullyUnrolled
|
||||
DebugLoc: { File: basic/or.c, Line: 14, Column: 3 }
|
||||
Function: Test
|
||||
Args:
|
||||
- String: 'completely unrolled loop with '
|
||||
- UnrollCount: '16'
|
||||
- String: ' iterations'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: loop-vectorize
|
||||
Name: Vectorized
|
||||
DebugLoc: { File: basic/or.h, Line: 5, Column: 3 }
|
||||
Function: TestH
|
||||
Args:
|
||||
- String: 'vectorized loop (vectorization width: '
|
||||
- VectorizationFactor: '4'
|
||||
- String: ', interleaved count: '
|
||||
- InterleaveCount: '2'
|
||||
- String: ')'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: loop-vectorize
|
||||
Name: Vectorized
|
||||
DebugLoc: { File: basic/or.c, Line: 10, Column: 3 }
|
||||
Function: Test
|
||||
Args:
|
||||
- String: 'vectorized loop (vectorization width: '
|
||||
- VectorizationFactor: '4'
|
||||
- String: ', interleaved count: '
|
||||
- InterleaveCount: '2'
|
||||
- String: ')'
|
||||
...
|
@ -1,186 +0,0 @@
|
||||
--- !Passed
|
||||
Pass: sil-generic-specializer
|
||||
Name: sil.Specialized
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 7
|
||||
Column: 13
|
||||
Function: 'f()'
|
||||
Args:
|
||||
- String: 'Specialized function '
|
||||
- Function: '"Swift.CountableRange.init(uncheckedBounds:)"'
|
||||
- String: ' with type '
|
||||
- FuncType: '(Int, Int, @thin CountableRange<Int>.Type) -> CountableRange<Int>'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: sil-generic-specializer
|
||||
Name: sil.Specialized
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 7
|
||||
Column: 12
|
||||
Function: 'f()'
|
||||
Args:
|
||||
- String: 'Specialized function '
|
||||
- Function: '"Swift.Collection<>.makeIterator()"'
|
||||
- String: ' with type '
|
||||
- FuncType: '(@in_guaranteed CountableRange<Int>) -> IndexingIterator<CountableRange<Int>>'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: sil-generic-specializer
|
||||
Name: sil.Specialized
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 7
|
||||
Column: 9
|
||||
Function: 'f()'
|
||||
Args:
|
||||
- String: 'Specialized function '
|
||||
- Function: '"Swift.IndexingIterator.next()"'
|
||||
- String: ' with type '
|
||||
- FuncType: '(@inout IndexingIterator<CountableRange<Int>>) -> Optional<Int>'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: sil-generic-specializer
|
||||
Name: sil.Specialized
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 8
|
||||
Column: 12
|
||||
Function: 'f()'
|
||||
Args:
|
||||
- String: 'Specialized function '
|
||||
- Function: '"Swift._allocateUninitializedArray<A>(_:)"'
|
||||
- String: ' with type '
|
||||
- FuncType: '(Builtin.Word) -> (@owned Array<Any>, Builtin.RawPointer)'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: sil-generic-specializer
|
||||
Name: sil.Specialized
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 8
|
||||
Column: 12
|
||||
Function: 'f()'
|
||||
Args:
|
||||
- String: 'Specialized function '
|
||||
- Function: '"Swift.Array.subscript.getter"'
|
||||
- String: ' with type '
|
||||
- FuncType: '(Int, @guaranteed Array<Int>) -> Int'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: sil-inliner
|
||||
Name: sil.Inlined
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 7
|
||||
Column: 13
|
||||
Function: 'f()'
|
||||
Args:
|
||||
- Callee: '"specialized Swift.CountableRange.init(uncheckedBounds:)"'
|
||||
DebugLoc:
|
||||
File: blah.swift
|
||||
Line: 6
|
||||
Column: 6
|
||||
- String: ' inlined into '
|
||||
- Caller: '"s.f()"'
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 6
|
||||
Column: 6
|
||||
- String: ' (cost = '
|
||||
- Cost: '0'
|
||||
- String: ', benefit = '
|
||||
- Benefit: '20'
|
||||
- String: ')'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: sil-inliner
|
||||
Name: sil.Inlined
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 8
|
||||
Column: 12
|
||||
Function: 'f()'
|
||||
Args:
|
||||
- Callee: '"specialized Swift.Array.subscript.getter"'
|
||||
- String: ' inlined into '
|
||||
- Caller: '"s.f()"'
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 6
|
||||
Column: 6
|
||||
- String: ' (cost = '
|
||||
- Cost: '3'
|
||||
- String: ', benefit = '
|
||||
- Benefit: '52'
|
||||
- String: ')'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: sil-generic-specializer
|
||||
Name: sil.Specialized
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 4
|
||||
Column: 17
|
||||
Function: main
|
||||
Args:
|
||||
- String: 'Specialized function '
|
||||
- Function: '"Swift._allocateUninitializedArray<A>(_:)"'
|
||||
- String: ' with type '
|
||||
- FuncType: '(Builtin.Word) -> (@owned Array<Int>, Builtin.RawPointer)'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: sil-generic-specializer
|
||||
Name: sil.Specialized
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 4
|
||||
Column: 16
|
||||
Function: main
|
||||
Args:
|
||||
- String: 'Specialized function '
|
||||
- Function: '"Swift.Array.init(arrayLiteral:)"'
|
||||
- String: ' with type '
|
||||
- FuncType: '(@owned Array<Int>, @thin Array<Int>.Type) -> @owned Array<Int>'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: sil-inliner
|
||||
Name: sil.Inlined
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 4
|
||||
Column: 16
|
||||
Function: main
|
||||
Args:
|
||||
- Callee: '"specialized Swift.Array.init(arrayLiteral:)"'
|
||||
- String: ' inlined into '
|
||||
- Caller: '"main"'
|
||||
- String: ' (cost = '
|
||||
- Cost: '0'
|
||||
- String: ', benefit = '
|
||||
- Benefit: '20'
|
||||
- String: ')'
|
||||
...
|
||||
--- !Passed
|
||||
Pass: sil-inliner
|
||||
Name: sil.Inlined
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 12
|
||||
Column: 1
|
||||
Function: main
|
||||
Args:
|
||||
- Callee: '"s.f()"'
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 6
|
||||
Column: 6
|
||||
- String: ' inlined into '
|
||||
- Caller: '"main"'
|
||||
- String: ' (cost = '
|
||||
- Cost: '20'
|
||||
- String: ', benefit = '
|
||||
- Benefit: '20'
|
||||
- String: ')'
|
||||
...
|
@ -1,11 +0,0 @@
|
||||
import Swift
|
||||
|
||||
var s: [Int] = [1, 2, 3, 4]
|
||||
|
||||
func f() {
|
||||
for i in 0..<4 {
|
||||
print(s[i])
|
||||
}
|
||||
}
|
||||
|
||||
f()
|
@ -1,22 +0,0 @@
|
||||
--- !Passed
|
||||
Pass: sil-inliner
|
||||
Name: sil.Inlined
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 12
|
||||
Column: 16
|
||||
Function: main
|
||||
Args:
|
||||
- Callee: '"s.• infix(_:_:)"'
|
||||
DebugLoc:
|
||||
File: s.swift
|
||||
Line: 3
|
||||
Column: 6
|
||||
- String: ' inlined into '
|
||||
- Caller: '"main"'
|
||||
- String: ' (cost = '
|
||||
- Cost: '2'
|
||||
- String: ', benefit = '
|
||||
- Benefit: '40'
|
||||
- String: ')'
|
||||
...
|
@ -1,12 +0,0 @@
|
||||
infix operator •: AdditionPrecedence
|
||||
|
||||
func • (a: Int, b: Int) -> Int {
|
||||
return a * b
|
||||
}
|
||||
|
||||
@inline(never)
|
||||
func g(a: Int) -> Int{
|
||||
return a + 1
|
||||
}
|
||||
|
||||
let i = g(a: 1 • 2)
|
Reference in New Issue
Block a user