/llvm-project/llvm/test/Analysis/CostModel/RISCV/ |
H A D | rvv-load-store.ll | 3 ; RUN: opt -passes="print<cost-model>" -cost-kind=code-size 2>&1 -disable-output -mtriple=riscv64 -mattr=+v,+f,+d,+zfh,+zvfh < %s | FileCheck %s --check-prefixes=CODESIZE 89 ; CODESIZE-LABEL: 'load' 90 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = load i1, ptr %p, align 1 91 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %2 = load <1 x i1>, ptr %p, align 1 92 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %3 = load <2 x i1>, ptr %p, align 1 93 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %4 = load <4 x i1>, ptr %p, align 1 94 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %5 = load <8 x i1>, ptr %p, align 1 95 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %6 = load <16 x i1>, ptr %p, align 2 96 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %7 = load <32 x i1>, ptr %p, align 4 97 ; CODESIZE [all...] |
/llvm-project/llvm/test/Analysis/CostModel/X86/ |
H A D | aggregates.ll | 4 …print<cost-model>" -cost-kind=code-size 2>&1 -disable-output | FileCheck %s --check-prefix=CODESIZE 15 ; CODESIZE-LABEL: 'extract_first_i32' 16 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r = extractvalue { i32… 17 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %r 32 ; CODESIZE-LABEL: 'extract_second_i32' 33 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r = extractvalue { i32… 34 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %r 49 ; CODESIZE-LABEL: 'extract_i32' 50 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r = extractvalue { i32… 51 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %r [all …]
|
H A D | costmodel.ll | 3 ; RUN: opt < %s -passes="print<cost-model>" -cost-kind=code-size 2>&1 -disable-output -mtriple=x86_64-unknown-linux-gnu -mcpu=corei7 | FileCheck %s --check-prefix=CODESIZE 24 ; CODESIZE-LABEL: 'foo' 25 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %A1 = alloca i32, align 8 26 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %A2 = alloca i64, i64 undef, align 8 27 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %I64 = add i64 undef, undef 28 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = load i64, ptr undef, align 4 29 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %I2P = inttoptr i64 undef to ptr 30 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %P2I = ptrtoint ptr undef to i64 31 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %TC = trunc i64 undef to i32 32 ; CODESIZE [all...] |
/llvm-project/llvm/test/Analysis/CostModel/AArch64/ |
H A D | aggregates.ll | 4 …print<cost-model>" -cost-kind=code-size 2>&1 -disable-output | FileCheck %s --check-prefix=CODESIZE 17 ; CODESIZE-LABEL: 'extract_first_i32' 18 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r = extractvalue { i32… 19 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %r 34 ; CODESIZE-LABEL: 'extract_second_i32' 35 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r = extractvalue { i32… 36 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %r 51 ; CODESIZE-LABEL: 'extract_i32' 52 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %r = extractvalue { i32… 53 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: ret i32 %r [all …]
|
H A D | shuffle-load.ll | 3 …print<cost-model>" -cost-kind=code-size 2>&1 -disable-output | FileCheck %s --check-prefix=CODESIZE 60 ; CODESIZE-LABEL: 'shuffle' 61 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %lv2i8 = load <2 x i8>,… 62 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %sv2i8 = shufflevector … 63 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %lv4i8 = load <4 x i8>,… 64 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %sv4i8 = shufflevector … 65 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %lv8i8 = load <8 x i8>,… 66 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %sv8i8 = shufflevector … 67 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %lv16i8 = load <16 x i8… 68 ; CODESIZE-NEXT: Cost Model: Found an estimated cost of 0 for instruction: %sv16i8 = shufflevector… [all …]
|
/llvm-project/llvm/include/llvm/Transforms/IPO/ |
H A D | FunctionSpecialization.h | 31 // that inherits from the InstVisitor. The bonus itself is expressed as codesize 32 // and latency savings. Codesize savings means the amount of code that becomes 47 // * funcspec-min-codesize-savings 50 // There's also an option for controlling the codesize growth from recursive 51 // specializations. That is `funcspec-max-codesize-growth`. 142 unsigned CodeSize; 147 Spec(Function *F, const SpecSig &S, unsigned Score, unsigned CodeSize) 148 : F(F), Sig(S), Score(Score), CodeSize(CodeSize) {} 149 Spec(Function *F, const SpecSig &&S, unsigned Score, unsigned CodeSize) in Bonus() 144 unsigned CodeSize = 0; global() member [all...] |
/llvm-project/lld/test/COFF/Inputs/ |
H A D | pdb-globals.yaml | 133 - CodeSize: 10 141 - CodeSize: 9 149 - CodeSize: 7 161 CodeSize: 10 179 CodeSize: 10 193 - CodeSize: 153 201 - CodeSize: 152 209 - CodeSize: 150 221 CodeSize: 153 291 CodeSize: 153 [all …]
|
H A D | pdb-hashes-1.yaml | 55 - CodeSize: 65 63 - CodeSize: 64 71 - CodeSize: 62 79 - CodeSize: 61 91 CodeSize: 65 145 CodeSize: 65 338 - CodeSize: 32 346 - CodeSize: 31 354 - CodeSize: 29 366 CodeSize: 32 [all …]
|
H A D | pdb-scopes-a.yaml | 37 CodeSize: 5 61 CodeSize: 5 77 CodeSize: 58 100 CodeSize: 17 113 CodeSize: 17 127 CodeSize: 58
|
H A D | pdb-hashes-2-missing.yaml | 44 - CodeSize: 25 52 - CodeSize: 24 60 - CodeSize: 22 72 CodeSize: 25 96 CodeSize: 25
|
H A D | pdb-hashes-2.yaml | 44 - CodeSize: 25 52 - CodeSize: 24 60 - CodeSize: 22 72 CodeSize: 25 96 CodeSize: 25
|
H A D | pdb-scopes-b.yaml | 37 CodeSize: 62 60 CodeSize: 20 73 CodeSize: 20 87 CodeSize: 62
|
H A D | pdb_comdat_main.yaml | 40 CodeSize: 24 59 CodeSize: 24 235 CodeSize: 15 254 CodeSize: 15
|
H A D | pdb_comdat_bar.yaml | 40 CodeSize: 14 59 CodeSize: 14 224 CodeSize: 15 243 CodeSize: 15
|
/llvm-project/llvm/test/tools/llvm-readobj/COFF/ |
H A D | codeview-linetables.test | 45 MFUN32: CodeSize: 0xA 64 MFUN32: CodeSize: 0xA 83 MFUN32: CodeSize: 0x14 109 MFUN32-NEXT CodeSize: 0xA 132 MFUN32-NEXT CodeSize: 0xA 155 MFUN32-NEXT CodeSize: 0x14 197 MFUN64: CodeSize: 0xE 212 MFUN64: CodeSize: 0xE 227 MFUN64: CodeSize: 0x18 253 MFUN64-NEXT: CodeSize: 0xE [all …]
|
/llvm-project/llvm/unittests/Transforms/IPO/ |
H A D | FunctionSpecializationTest.cpp | 104 Cost CodeSize = in getInstCost() local 110 return CodeSize; in getInstCost()
|
/llvm-project/lld/test/COFF/ |
H A D | pdb-framedata.yaml | 73 - CodeSize: 31 81 - CodeSize: 30 89 - CodeSize: 28 101 CodeSize: 31 140 CodeSize: 31 158 - CodeSize: 53 166 - CodeSize: 52 174 - CodeSize: 50 182 - CodeSize: 49 194 CodeSize: 53 [all …]
|
/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | FunctionSpecialization.cpp | 65 "funcspec-max-codesize-growth", cl::init(3), cl::Hidden, cl::desc( 66 "Maximum codesize growth allowed per function")); 69 "funcspec-min-codesize-savings", cl::init(20), cl::Hidden, 70 cl::desc("Reject specializations whose codesize savings are less than this " 102 // Estimates the codesize savings due to dead code after constant propagation. in canEliminateSuccessor() 110 Cost CodeSize = 0; 111 // Accumulate the codesize savings of each basic block. 129 LLVM_DEBUG(dbgs() << "FnSpecialization: CodeSize " << C in estimateBasicBlocks() 131 CodeSize += C; in estimateBasicBlocks() 140 return CodeSize; in estimateBasicBlocks() 114 Cost CodeSize = 0; estimateBasicBlocks() local 193 Cost CodeSize = 0; getUserBonus() local [all...] |
/llvm-project/llvm/test/MC/COFF/ |
H A D | cv-fpo-csrs.s | 70 # OBJ-NEXT: CodeSize: 0x23 87 # OBJ-NEXT: CodeSize: 0x22 104 # OBJ-NEXT: CodeSize: 0x21 122 # OBJ-NEXT: CodeSize: 0x20 141 # OBJ-NEXT: CodeSize: 0x1F 161 # OBJ-NEXT: CodeSize: 0x1C
|
H A D | cv-fpo-setframe.s | 73 # OBJ-NEXT: CodeSize: 0x23 90 # OBJ-NEXT: CodeSize: 0x22 107 # OBJ-NEXT: CodeSize: 0x20 124 # OBJ-NEXT: CodeSize: 0x1F 142 # OBJ-NEXT: CodeSize: 0x1E 161 # OBJ-NEXT: CodeSize: 0x1D
|
/llvm-project/llvm/test/DebugInfo/COFF/ |
H A D | fpo-csrs.ll | 77 ; OBJ-NEXT: CodeSize: 0x1E 94 ; OBJ-NEXT: CodeSize: 0x1D 144 ; OBJ-NEXT: CodeSize: 0x29 161 ; OBJ-NEXT: CodeSize: 0x28 178 ; OBJ-NEXT: CodeSize: 0x27 230 ; OBJ-NEXT: CodeSize: 0x34 247 ; OBJ-NEXT: CodeSize: 0x33 264 ; OBJ-NEXT: CodeSize: 0x32 282 ; OBJ-NEXT: CodeSize: 0x31 340 ; OBJ-NEXT: CodeSize: 0x3F [all …]
|
H A D | multifunction.ll | 199 ; OBJ32: CodeSize: 0x6 216 ; OBJ32: CodeSize: 0x6 233 ; OBJ32: CodeSize: 0x10 246 ; OBJ32-NEXT: CodeSize: 0x6 268 ; OBJ32-NEXT: CodeSize: 0x6 290 ; OBJ32-NEXT: CodeSize: 0x10 518 ; OBJ64: CodeSize: 0xE 532 ; OBJ64: CodeSize: 0xE 546 ; OBJ64: CodeSize: 0x18 559 ; OBJ64-NEXT: CodeSize: 0xE [all …]
|
/llvm-project/llvm/unittests/ExecutionEngine/MCJIT/ |
H A D | MCJITMemoryManagerTest.cpp | 124 uintptr_t CodeSize = i % 16 + 1; in TEST() local 130 code[i] = MemMgr->allocateCodeSection(CodeSize, Align, i, ""); in TEST() 134 for (unsigned j = 0; j < CodeSize; j++) { in TEST() 153 uintptr_t CodeSize = i % 16 + 1; in TEST() local 156 for (unsigned j = 0; j < CodeSize; j++) { in TEST()
|
/llvm-project/llvm/lib/ExecutionEngine/PerfJITEvents/ |
H A D | PerfJITEventListener.cpp | 82 uint64_t CodeSize); 147 uint64_t CodeSize; 408 uint64_t CodeAddr, uint64_t CodeSize) { in NotifyCode() 412 if (CodeSize == 0) in NotifyCode() 419 CodeSize; // and code in NotifyCode() 422 rec.CodeSize = CodeSize; in NotifyCode() 435 Dumpstream->write(reinterpret_cast<const char *>(CodeAddr), CodeSize); in NotifyDebug() 143 uint64_t CodeSize; global() member 405 NotifyCode(Expected<llvm::StringRef> & Symbol,uint64_t CodeAddr,uint64_t CodeSize) NotifyCode() argument
|
/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/ |
H A D | PerfSharedStructs.h | 45 uint64_t CodeSize; member 121 Val.Prefix, Val.Pid, Val.Tid, Val.Vma, Val.CodeAddr, Val.CodeSize, in size() 127 IB, Val.Prefix, Val.Pid, Val.Tid, Val.Vma, Val.CodeAddr, Val.CodeSize, in deserialize() 133 OB, Val.Prefix, Val.Pid, Val.Tid, Val.Vma, Val.CodeAddr, Val.CodeSize, in serialize()
|