Skip to content

Missed optimization: (int)x + 1 == (int)y - 1 #32161

@Tilka

Description

@Tilka
Bugzilla Link 32814
Version trunk
OS All
CC @LebedevRI,@RKSimon,@rotateright

Extended Description

int(x) + 1 == int(y) - 1

is not being optimized to

int(x) + 2 == int(y)

Proof: http://rise4fun.com/Alive/vaC

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