Skip to content

miscompile with -loop-rotate -indvars #3016

Closed
@llvmbot

Description

@llvmbot
Bugzilla Link 2644
Resolution INVALID
Resolved on Oct 26, 2008 19:17
Version trunk
OS Linux
Attachments testcase; the part that gets miscompiled, driver for the testcase; used to generate 'x.s' in the snippet
Reporter LLVM Bugzilla Contributor

Extended Description

I have a miscompile:

$ opt -loop-rotate -indvars c.bc | llc -f -o x2.s
nlewycky@ducttape:/local$ gcc x.s x2.s -o x -lm
nlewycky@ducttape:
/local$ ./x
Hilbert Slice. Test case 1 of size 120.
One-Norm(A) ---------- 1.833333e+00.
Segmentation fault

Without the 'opt' phase, the program runs correctly. This is a bugpoint reduction of sgefa.

I should mention that opt -loop-rotate | opt -indvars appears to produce different output (it's hard to spot amongst the variable renamings, but it looks like a GEP is missing or in a different spot).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillainvalidResolved as invalid, i.e. not a bugloopoptim

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions