http://llvm.org/bugs/show_bug.cgi?id=15026

             Bug #: 15026
           Summary: opt should raise an error for unsupported target
                    triples.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


opt currently attempts to load target information for the target triple
specified in the bitcode. If the triple does not match a known target, it
silently uses unknown target information. This can cause subtle changes in
compiler behavior that are difficult to track down.

A better approach would be for opt to enforce that a backend exists for the
specified triple.

Like llc, -mtriple could be used to override the target triple, providing a way
to bypass the error.

For example, prior to r172534, the behavior of this test changed dependning on
whether the host compiler had built the X86 backend. The test failed with a
native ARM-only compiler:
test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll

Fixing this behavior requires cleaning up the test cases, see PR15025.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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