[LLVMbugs] [Bug 6370] New: dag scheduler is nondeterministic

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Feb 21 12:32:35 PST 2010


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

           Summary: dag scheduler is nondeterministic
           Product: libraries
           Version: 1.0
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu
   Estimated Hours: 0.0


This testcase:

define void @test() nounwind {
    store i32 0, i32* inttoptr (i64 48725999 to i32*)
    ret void
}

Generates one of these two code sequences depending on where SDNode's end up
being allocated in memory:

_test:                                  ; @test
; BB#0:
    lis r3, 743
    li r4, 0
    stw r4, 32751(r3)
    blr 

_test:                                  ; @test
; BB#0:
    li r3, 0
    lis r4, 743
    stw r3, 32751(r4)
    blr 

The -view-sched-dags output of both of them is identical other than the
addresses of the nodes.  To reproduce this, you can apply a patch to turn on
the new instruction selector (attached).

-- 
Configure bugmail: http://www.llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are watching all bug changes.



More information about the llvm-bugs mailing list