Skip to content

Probably inefficient code generation #10030

@baremetaldude

Description

@baremetaldude
Bugzilla Link 9658
Version trunk
OS Linux

Extended Description

Working on my compiler(http://code.google.com/p/bamelg/) I found that sometimes LLVM generates TOO many movb's
...
movb $0, 209(%esp)
movb $0, 208(%esp)
movb $0, 207(%esp)
movb $0, 206(%esp)
movb $0, 205(%esp)
movb $0, 204(%esp)
movb $0, 203(%esp)
...

following each other. ( total of ~500Kb of compiled movbs! )

Tested with rev 129071.

  1. llc -O=3 -march=x86 test.bc -O=3 -o test.s
  2. see test.s line 287-4403 ( also 47497-84488 )

PS. Code from real app and I have no idea how to reduce bytecode file to repro this

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilla

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions