[llvm-bugs] [Bug 35549] New: [X86] Repeated schedule comments

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 6 08:46:13 PST 2017


            Bug ID: 35549
           Summary: [X86] Repeated schedule comments
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: andrea.dibiagio at gmail.com,
                    andrew.v.tischenko at gmail.com, craig.topper at gmail.com,
                    gadi.haber at intel.com, llvm-bugs at lists.llvm.org,
                    spatel+llvm at rotateright.com
            Blocks: 32325

Taken from llvm\test\CodeGen\X86\avx512-schedule.ll

declare void @func_f32(float)
define <16 x float> @broadcast_ss_spill(float %x) {
  %a  = fadd float %x, %x
  call void @func_f32(float %a)
  %b = insertelement <16 x float> undef, float %a, i32 0
  %c = shufflevector <16 x float> %b, <16 x float> undef, <16 x i32>
  ret <16 x float> %c

Note the repeated scheduling comments for vmovaps and vbroadcastss:

llc -mtriple=x86_64-unknown-unknown -print-schedule -mcpu=skx

.file   "bar.ll"
.globl  broadcast_ss_spill      # -- Begin function broadcast_ss_spill
.p2align        4, 0x90
.type   broadcast_ss_spill, at function
broadcast_ss_spill:                     # @broadcast_ss_spill
# %bb.0:
subq    $24, %rsp               #  sched: [1:0.25]
.cfi_def_cfa_offset 32
vaddss  %xmm0, %xmm0, %xmm0     #  sched: [4:0.33]
vmovaps %xmm0, (%rsp)           # 16-byte Spill  sched: [1:1.00]
                                      #  sched: [1:1.00]
callq   func_f32
vbroadcastss    (%rsp), %zmm0   # 16-byte Folded Reload  sched: [8:0.50]
                                      #  sched: [8:0.50]
addq    $24, %rsp               #  sched: [1:0.25]
retq                            #  sched: [7:1.00]
.size   broadcast_ss_spill, .Lfunc_end0-broadcast_ss_spill
                                      # -- End function

.section        ".note.GNU-stack","", at progbits

Referenced Bugs:

[Bug 32325] [META][X86] Improve implementation and use of X86 scheduler models
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171206/5c2a0d83/attachment.html>

More information about the llvm-bugs mailing list