[llvm-bugs] [Bug 48757] New: llc -stop-after broken after "Introduce CodeGenPassBuilder to help build codegen pipeline"

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 14 18:50:15 PST 2021


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

            Bug ID: 48757
           Summary: llc -stop-after broken after "Introduce
                    CodeGenPassBuilder to help build codegen pipeline"
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: Matthew.Arsenault at amd.com
                CC: aeubanks at google.com, llvm-bugs at lists.llvm.org,
                    yuanfang.chen at sony.com

Created attachment 24381
  --> https://bugs.llvm.org/attachment.cgi?id=24381&action=edit
Testcase

Recently I've been having trouble using -stop-before and -stop-after, with an
error that the pass is not run:

$ llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx906
-start-before=si-form-memory-clauses  -stop-after=virtregrewriter -o /dev/null
/tmp/stop-after-memory-clauses.mir
LLVM ERROR: Cannot stop compilation after pass that is not run


Reverting this commit seems to fix it:
commit 480936e741d588d53b9e2d9c5935b5daa0fdee25
Author: Yuanfang Chen <yuanfang.chen at sony.com>
Date:   Tue Dec 29 16:30:16 2020 -0800

    Reland "[NewPM][CodeGen] Introduce CodeGenPassBuilder to help build codegen
pipeline" (again)

    This reverts commit 16c8f6e91344ec9840d6aa9ec6b8d0c87a104ca3 with fix.

    -Wswitch catched an unhandled enum value due to recent commits in
    TargetPassConfig.cpp.

-- 
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/20210115/571dd8a5/attachment.html>


More information about the llvm-bugs mailing list