Skip to content

llvm-ld missing a dce pass #1683

@llvmbot

Description

@llvmbot
Bugzilla Link 1311
Resolution FIXED
Resolved on Feb 22, 2010 12:52
Version trunk
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

I ran "llvm-ld -O4" on some bytecode I had to hand, and noticed the
following in the result:

    %tmp3.i = load i8* getelementptr 

(%struct.system__restrictions__rident__restrictions_info*
@​system__restrictions__run_time_restrictions, i32 0, i32 2, i32 1) ;
[#uses=1]
icmp eq i8 %tmp3.i, 0 ; :0 [#uses=0]

The second line is the only use of the first line, and the
second line has no uses! "opt -dce" cleans this up, so presumably
llvm-ld could do with an extra dce pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions