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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs