[LLVMbugs] [Bug 11364] New: Peephole pass should remove dead code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Nov 12 13:08:39 PST 2011


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

             Bug #: 11364
           Summary: Peephole pass should remove dead code
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: stoklund at 2pi.dk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The codegen PeepholeOptimizer can eliminate bitcasts like these:

        %vreg1<def> = VMOVSR %vreg0, pred:14, pred:%noreg; SPR:%vreg1
GPR:%vreg0
        %vreg3<def> = VMOVRS %vreg1, pred:14, pred:%noreg; GPR:%vreg3
SPR:%vreg1

But it forgets to clean up dead code left behind.

See test/CodeGen/ARM/peephole-bitcast.ll which depends on the linear scan
register allocator to remove a dead vmov.

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