| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/ |
| H A D | load-constant-f32.ll | 9 …oid @constant_load_v8f32(float addrspace(4)* noalias nocapture readonly %weights, float addrspace(… 12 %tmp = load float, float addrspace(4)* %weights, align 4 14 %arrayidx.1 = getelementptr inbounds float, float addrspace(4)* %weights, i64 1 17 %arrayidx.2 = getelementptr inbounds float, float addrspace(4)* %weights, i64 2 20 %arrayidx.3 = getelementptr inbounds float, float addrspace(4)* %weights, i64 3 23 %arrayidx.4 = getelementptr inbounds float, float addrspace(4)* %weights, i64 4 26 %arrayidx.5 = getelementptr inbounds float, float addrspace(4)* %weights, i64 5 29 %arrayidx.6 = getelementptr inbounds float, float addrspace(4)* %weights, i64 6 32 %arrayidx.7 = getelementptr inbounds float, float addrspace(4)* %weights, i64 7
|
| H A D | load-constant-f64.ll | 20 …d @constant_load_2v4f64(double addrspace(4)* noalias nocapture readonly %weights, double addrspace… 23 %tmp = load double, double addrspace(4)* %weights, align 4 25 %arrayidx.1 = getelementptr inbounds double, double addrspace(4)* %weights, i64 1 28 %arrayidx.2 = getelementptr inbounds double, double addrspace(4)* %weights, i64 2 31 %arrayidx.3 = getelementptr inbounds double, double addrspace(4)* %weights, i64 3 34 %arrayidx.4 = getelementptr inbounds double, double addrspace(4)* %weights, i64 4 37 %arrayidx.5 = getelementptr inbounds double, double addrspace(4)* %weights, i64 5 40 %arrayidx.6 = getelementptr inbounds double, double addrspace(4)* %weights, i64 6 43 %arrayidx.7 = getelementptr inbounds double, double addrspace(4)* %weights, i64 7
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-cov/Inputs/ |
| H A D | branch-c-general.c | 109 static int weights[] = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5}; in switches() local 112 switch (weights[0]) { in switches() 117 for (int i = 0, len = sizeof(weights) / sizeof(weights[0]); i < len; ++i) { in switches() 118 switch (i[weights]) { in switches() 143 if (weights[0]) {} in switches()
|
| /llvm-project-15.0.7/clang/test/Profile/ |
| H A D | c-general.c | 220 static int weights[] = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 5}; in switches() local 223 switch (weights[0]) { in switches() 232 for (int i = 0, len = sizeof(weights) / sizeof(weights[0]); i < len; ++i) { in switches() 235 switch (i[weights]) { in switches() 283 if (weights[0]) {} in switches()
|
| /llvm-project-15.0.7/llvm/docs/ |
| H A D | BranchWeightMetadata.rst | 11 Branch Weight Metadata represents branch weights as its likeliness to be taken 17 Branch weights might be fetch from the profiling file, or generated based on 20 All weights are represented as an unsigned 32-bit values, where higher value 43 Branch weights are assigned to every case (including the ``default`` case which 57 Branch weights are assigned to every destination. 84 Invoke instruction may have branch weight metadata with one or two weights. 88 weights are specified then the second weight contains count of unwind branch 89 taken and the first weights contains the execution count of the call minus 90 the count of unwind branch taken. Both weights specified are used to calculate 91 BranchProbability as for BranchInst and for SamplePGO the sum of both weights
|
| H A D | MisExpect.rst | 22 a mismatch between the branch weights collected during profiling and those 27 branch weights are assigned to the target instruction in the form of 30 There are 3 key places in the LLVM backend where branch weights are 39 profile weights mismatch the calculated threshold, then we will emit a
|
| H A D | BlockFrequencyTerminology.rst | 28 the sum of the weights on the predecessor's outgoing edges. 75 distributed to successors according to branch weights. Block Mass uses a
|
| /llvm-project-15.0.7/llvm/test/Other/ |
| H A D | cfg-printer-branch-weights.ll | 1 ;RUN: opt < %s -dot-cfg -cfg-weights -cfg-raw-weights -cfg-dot-filename-prefix=%t 2>/dev/null > /de…
|
| H A D | cfg-printer-branch-weights-percent.ll | 1 ;RUN: opt < %s -dot-cfg -cfg-weights -cfg-dot-filename-prefix=%t 2>/dev/null > /dev/null
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/ |
| H A D | SPIRVControlFlowOps.td | 94 Branch weights are unsigned 32-bit integer literals. There must be 95 either no Branch Weights or exactly two branch weights. If present, the 99 weights. At least one weight must be non-zero. A weight of zero does not 100 imply a branch is dead or permit its removal; branch weights are only 101 hints. The two weights must not overflow a 32-bit unsigned integer when 140 CArg<"Optional<std::pair<uint32_t, uint32_t>>", "{}">:$weights), 143 if (weights) { 145 $_builder.getI32ArrayAttr({static_cast<int32_t>(weights->first), 146 static_cast<int32_t>(weights->second)});
|
| /llvm-project-15.0.7/llvm/test/CodeGen/X86/ |
| H A D | switch-edge-weight.ll | 31 ; Check if weights are correctly assigned to edges generated from switch 99 ; Check if weights are correctly assigned to edges generated from switch 160 ; Check if weights are correctly assigned to edges generated from switch 213 ; Check if weights are correctly assigned to edges generated from switch 270 ; Check if weights are correctly assigned to edges generated from switch
|
| H A D | fast-isel-branch_weights.ll | 4 ; Test if the BBs are reordred according to their branch weights.
|
| H A D | code_placement_ignore_succ_in_inner_loop.ll | 46 ; node in its peer loop, the weights on edges in the first loop should be 76 ; node in its outer loop, the weights on edges in the outer loop should be
|
| /llvm-project-15.0.7/llvm/test/Transforms/LoopUnroll/ |
| H A D | peel-loop-pgo-deopt.ll | 7 ; from the loop, and update the branch weights for the peeled loop properly. 83 ; This is a weights of deopt side-exit. 85 ; This is a weights of latch and its copies.
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Hexagon/ |
| H A D | ifcvt-edge-weight.ll | 2 ; Check that the edge weights are updated correctly after if-conversion. 10 ; Check if the edge weights on edges to E and F are maintained correctly.
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/Dialect/LLVMIR/ |
| H A D | LLVMToLLVMIRTranslation.cpp | 418 if (auto weights = condbrOp.getBranchWeights()) { in convertOperationImpl() local 420 auto weightValues = weights->getValues<APInt>(); in convertOperationImpl() 438 if (auto weights = switchOp.getBranchWeights()) { in convertOperationImpl() local 440 weightValues.reserve(weights->size()); in convertOperationImpl() 441 for (llvm::APInt weight : weights->cast<DenseIntElementsAttr>()) in convertOperationImpl()
|
| /llvm-project-15.0.7/llvm/test/Analysis/BranchProbabilityInfo/ |
| H A D | pr18705.ll | 4 ; calcLoopBranchHeuristics should return early without setting the weights. 5 ; calcFloatingPointHeuristics, which is run later, sets the weights.
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | fast-isel-branch_weights.ll | 4 ; Test if the BBs are reordred according to their branch weights.
|
| /llvm-project-15.0.7/mlir/test/Dialect/Tosa/ |
| H A D | tosa-infer-shapes.mlir | 688 func.func @conv2d_static(%input: tensor<2x8x9x3xf32>, %weights: tensor<5x3x6x3xf32>, %bias: tensor<… 690 …%0 = "tosa.conv2d"(%input, %weights, %bias) {pad = [0, 0, 0, 0], stride = [1, 1], dilation = [1, 1… 697 func.func @conv2d_dynamic_input(%input: tensor<?x?x?x?xf32>, %weights: tensor<5x3x6x3xf32>, %bias: … 699 …%0 = "tosa.conv2d"(%input, %weights, %bias) {pad = [0, 0, 0, 0], stride = [1, 1], dilation = [1, 1… 730 func.func @conv2d_dynamic_weight(%input: tensor<2x8x9x3xf32>, %weights: tensor<?x?x?x?xf32>, %bias:… 732 …%0 = "tosa.conv2d"(%input, %weights, %bias) {pad = [0, 0, 0, 0], stride = [1, 1], dilation = [1, 1… 739 func.func @conv2d_dynamic_bias(%input: tensor<2x8x9x3xf32>, %weights: tensor<5x3x6x3xf32>, %bias: t… 760 func.func @conv2d_padded(%input: tensor<2x8x9x3xf32>, %weights: tensor<5x3x6x3xf32>, %bias: tensor<… 769 func.func @conv2d_dilated(%input: tensor<2x12x14x3xf32>, %weights: tensor<5x3x6x3xf32>, %bias: tens… 778 func.func @conv2d_strided(%input: tensor<1x13x14x1xf32>, %weights: tensor<1x1x1x1xf32>, %bias: tens… [all …]
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | MisExpect.rst | 19 these situations, by comparing the branch weights added by the ``llvm.expect`` 35 deviations when comparing branch weights within ``N%`` of the expected values.
|
| /llvm-project-15.0.7/llvm/test/Transforms/JumpThreading/ |
| H A D | threading_prof3.ll | 4 ; Check that all zero branch weights do not cause a crash.
|
| H A D | update-edge-weight.ll | 4 ; Test if edge weights are properly updated after jump threading.
|
| /llvm-project-15.0.7/llvm/test/Transforms/PGOProfile/ |
| H A D | misexpect-branch-correct.ll | 1 ; Test misexpect checks do not issue diagnostics when profiling weights and 2 ; branch weights added by llvm.expect agree
|
| /llvm-project-15.0.7/mlir/test/Conversion/TosaToLinalg/ |
| H A D | tosa-to-linalg-named.mlir | 346 func.func @conv2d_f32(%input: tensor<1x49x42x27xf32>, %weights: tensor<28x3x3x27xf32>, %bias: tenso… 357 …%0 = "tosa.conv2d"(%input, %weights, %bias) {pad = [0, 0, 0, 0], stride = [1, 1], dilation = [2, 1… 367 func.func @conv2d_dyn(%input: tensor<?x49x42x27xf32>, %weights: tensor<28x3x3x27xf32>, %bias: tenso… 380 …%0 = "tosa.conv2d"(%input, %weights, %bias) {pad = [0, 0, 0, 0], stride = [1, 1], dilation = [2, 1… 390 func.func @conv2d_dyn_w_h(%input: tensor<1x?x?x27xf32>, %weights: tensor<28x3x3x27xf32>, %bias: ten… 440 …%0 = "tosa.conv2d"(%input, %weights, %bias) {pad = [0, 0, 0, 0], stride = [1, 1], dilation = [2, 1… 447 func.func @conv2d_padded_f32(%input: tensor<1x47x40x28xf32>, %weights: tensor<28x3x3x28xf32>, %bias… 452 …%0 = "tosa.conv2d"(%input, %weights, %bias) {pad = [1, 1, 1, 1], stride = [1, 1], dilation = [2, 1…
|
| /llvm-project-15.0.7/llvm/test/Transforms/SimplifyCFG/ |
| H A D | suppress-zero-branch-weights.ll | 8 ; ensures that all-zero branch weights are not attached causing problems downstream.
|