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

            Bug ID: 27116
           Summary: RDDSP operands are added too late
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: MIPS
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

The RDDSPs operands are currently added in
MipsSEDAGToDAGISel::processFunctionAfterISel(), if they are the only user of a
physreg then these physreg will appear dead during the earlier InstrEmitter
phase of selection dag, so some defs will be incorrectly marked as dead.

This is currently not a problem because the LiveVariables pass happens to reset
all dead flags, however long term we plan to remove the whole LiveVariables
pass.

(The problem is visible in some functions in  test/CodeGen/Mips/dsp-r1.ll when
dead flag removal is disabled in the LiveVariables pass.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to