44 lines · plain
1; Test default llvm-profgen with preinline off2; RUN: llvm-profgen --format=text --perfscript=%S/Inputs/inline-cs-noprobe.perfscript --binary=%S/Inputs/inline-cs-noprobe.perfbin --csspgo-preinliner=0 --gen-cs-nested-profile=0 --output=%t13 4; Test llvm-profgen with preinliner on will merge not inlinable profile into base profile.5; RUN: llvm-profgen --format=text --llvm-sample-profile=%t1 --binary=%S/Inputs/inline-cs-noprobe.perfbin --csspgo-preinliner=1 --gen-cs-nested-profile=0 --sample-profile-hot-inline-threshold=3000 --sample-profile-cold-inline-threshold=45 --output=%t26; RUN: FileCheck %s --input-file %t2 --check-prefix=CHECK-PREINL7 8; Test default llvm-profgen with preinline off9; RUN: llvm-profgen --format=text --perfscript=%S/Inputs/inline-cs-pseudoprobe.perfscript --binary=%S/Inputs/inline-cs-pseudoprobe.perfbin --csspgo-preinliner=0 --gen-cs-nested-profile=0 --output=%t310 11; Test llvm-profgen with preinliner on will merge not inlinable profile into base profile.12; RUN: llvm-profgen --format=text --llvm-sample-profile=%t3 --binary=%S/Inputs/inline-cs-pseudoprobe.perfbin --csspgo-preinliner=1 --gen-cs-nested-profile=0 --sample-profile-hot-inline-threshold=3000 --sample-profile-cold-inline-threshold=45 --output=%t413; RUN: FileCheck %s --input-file %t4 --check-prefix=CHECK-PREINL-PROBE14 15; CHECK-PREINL: [foo]:309:016; CHECK-PREINL-NEXT: 2.1: 1417; CHECK-PREINL-NEXT: 3: 1518; CHECK-PREINL-NEXT: 3.1: 14 bar:1419; CHECK-PREINL-NEXT: 3.2: 120; CHECK-PREINL-NEXT: 65526: 1421; CHECK-PREINL-NEXT: !Attributes: 122; CHECK-PREINL-NEXT:[foo:3.1 @ bar]:84:023; CHECK-PREINL-NEXT: 1: 1424; CHECK-PREINL-NEXT: !Attributes: 325 26 27; CHECK-PREINL-PROBE: [foo]:74:028; CHECK-PREINL-PROBE-NEXT: 1: 029; CHECK-PREINL-PROBE-NEXT: 2: 1530; CHECK-PREINL-PROBE-NEXT: 3: 1531; CHECK-PREINL-PROBE-NEXT: 4: 1432; CHECK-PREINL-PROBE-NEXT: 5: 133; CHECK-PREINL-PROBE-NEXT: 6: 1534; CHECK-PREINL-PROBE-NEXT: 7: 035; CHECK-PREINL-PROBE-NEXT: 8: 14 bar:1436; CHECK-PREINL-PROBE-NEXT: 9: 037; CHECK-PREINL-PROBE-NEXT: !CFGChecksum: 56308890401323638; CHECK-PREINL-PROBE-NEXT: !Attributes: 139; CHECK-PREINL-PROBE-NEXT:[foo:8 @ bar]:28:1440; CHECK-PREINL-PROBE-NEXT: 1: 1441; CHECK-PREINL-PROBE-NEXT: 4: 1442; CHECK-PREINL-PROBE-NEXT: !CFGChecksum: 7261722075643; CHECK-PREINL-PROBE-NEXT: !Attributes: 344