[llvm-bugs] [Bug 51711] New: [postmisched] wrong code generated after post-mi scheduling

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 2 01:19:32 PDT 2021


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

            Bug ID: 51711
           Summary: [postmisched] wrong code generated after post-mi
                    scheduling
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: wweiandrew at gmail.com
                CC: llvm-bugs at lists.llvm.org

before post-ra scheduling:
...
renamable $w17 = ANDSWri renamable $w6, 15, implicit-def dead $nzcv
$w18 = SUBSWrs renamable $w13, renamable $w14, 0, implicit-def $nzcv,
implicit-def dead $nzcv
...
renamable $w11 = ANDSWri killed renamable $w2, 0, implicit-def $nzcv
renamable $w9 = CSINCWr killed renamable $w8, renamable $w8, 0, implicit killed
$nzcv
...

after post-ra scheduling:
...
$w18 = SUBSWrs renamable $w13, renamable $w14, 0, implicit-def $nzcv,
implicit-def dead $nzcv
...
renamable $w11 = ANDSWri killed renamable $w2, 0, implicit-def $nzcv
renamable $w17 = ANDSWri renamable $w6, 15, implicit-def dead $nzcv
renamable $w9 = CSINCWr killed renamable $w8, renamable $w8, 0, implicit killed
$nzcv
...

"renamable $w17 = ANDSWri renamable $w6, 15, implicit-def dead $nzcv" was wrong
scheduled, because "implicit-def dead $nzcv" in this inst will break the true
dependence between "renamable $w11 = ..." and   "renamable $w9 = ..."

-- 
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/20210902/b7d14582/attachment-0001.html>


More information about the llvm-bugs mailing list