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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to