[LLVMbugs] [Bug 24261] New: llc -stop-after/-start-after do not work with target passes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 24 18:29:01 PDT 2015


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

            Bug ID: 24261
           Summary: llc -stop-after/-start-after do not work with target
                    passes
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: matze at braunis.de
                CC: arphaman at gmail.com, dexonsmith at apple.com,
                    llvmbugs at cs.uiuc.edu
    Classification: Unclassified

An example with an ARM pass, though the problem affects all targets:

Using the llc -stop-after/-start-after fail to recognize target passes. For
example
  llc -stop-after arm-load-store-opt test.ll
results in:
  llc: stop-after pass is not registered.

The problems is that initializeARMLoadStoreOpt() is only called in the
ARMLoadStoreOpt constructor. This makes the Pass unknown if it is not part of
the default pipeline, even if you move the initializeARMLoadStoreOptPass() to
something like the ARMTargetMachine constructor does not help because the
target is initialized after the stop-after/start-after switches are checked in
the llc tool.

This makes it impossible to write MIR-serialization based tests for target
passes at the moment.

-- 
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/20150725/d96c3404/attachment.html>


More information about the llvm-bugs mailing list