[LLVMbugs] [Bug 12258] New: SLOW compile with -O2 -g (MachineBasicBlock::getFirstTerminator)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Mar 12 17:40:20 PDT 2012


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

             Bug #: 12258
           Summary: SLOW compile with -O2 -g
                    (MachineBasicBlock::getFirstTerminator)
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: kcc at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8202
  --> http://llvm.org/bugs/attachment.cgi?id=8202
slow_g.c

a test case provided by csmith takes 16 minutes to compile with "-O2 -g",
but builds instantly with -g *or* -O2.

r152567, linux x86_64, Release+Asserts build

% clang -w -c -g -O2  slow_g.c

profile looks like this: 
67.73% llvm::MachineBasicBlock::getFirstTerminator
29.91% llvm::MachineInstr::hasProperty

-- 
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.



More information about the llvm-bugs mailing list