Skip to content

Bug in LoopSimplfy pass #1618

@asl

Description

@asl
Bugzilla Link 1246
Resolution FIXED
Resolved on Nov 07, 2018 00:17
Version trunk
OS Linux
Depends On #1617
Attachments Failed bytecode
CC @lattner

Extended Description

Consider the attached bytecode. Be careful with re-assembling - you can hit #1617 .

Everything is ok with "llc -fast" or with disabled LoopStrengthReduce pass (or
cbe), but segfault with enabled.

Segfault occurs in bb43 BB. The variable %i1.0_cc becames uninitialized.
Initialization occurs in the meshBB BB, but it seems, that LSR incorrectly moves
it somewhere.

Target triple is, unfortunately, set to mingw32, but bytecode should run ok any
ia32 platform, it doesn't contain any target-specific code. Unfortunately, until
#1617 is fixed, I cannot change it :(

Please also note, that "opt -std-compile-opts" is buggy on this bytecode, but
it's subject for future investigation (maybe due to #1617 ).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions