Skip to content

Invalid division instcombine #2303

@efriedma-quic

Description

@efriedma-quic
Bugzilla Link 1931
Resolution INVALID
Resolved on Jan 27, 2008 11:28
Version unspecified
OS Linux

Extended Description

define i32 @​fold(i32 %a) {
%b = sdiv i32 %a, -1
%c = sdiv i32 %b, -2
ret i32 %c
}

gets combined into

define i32 @​fold(i32 %a) nounwind {
%c = sdiv i32 %a, 2 ; [#uses=1]
ret i32 %c
}

by opt -std-compile-opts. These functions are not equivalent!

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions