[llvm-bugs] [Bug 31165] New: Prefetch instruction not generated for ppc32

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Nov 26 04:36:18 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31165

            Bug ID: 31165
           Summary: Prefetch instruction not generated for ppc32
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: PowerPC
          Assignee: unassignedbugs at nondot.org
          Reporter: cs12b1010 at iith.ac.in
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 17648
  --> https://llvm.org/bugs/attachment.cgi?id=17648&action=edit
Loop with conditional prefetch instruction.

When I do:
llc -march ppc32 c.ll
the prefetch instruction(dcbtst) is not generated. However it is generated when
march=ppc64.

During codegen it seems that the prefetch dag node is being removed during
legalization in ppc32 case:

Legalizing: t5: ch = Prefetch<ST1[%4]> t0, t2, Constant:i32<1>,
Constant:i32<3>, Constant:i32<1>
 ... replacing: t5: ch = Prefetch<ST1[%4]> t0, t2, Constant:i32<1>,
Constant:i32<3>, Constant:i32<1>
     with:      t0: ch = EntryToken

-- 
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/20161126/cca53669/attachment.html>


More information about the llvm-bugs mailing list