Skip to content

constant folding should fold this constant expr #3723

@lattner

Description

@lattner
Bugzilla Link 3351
Resolution FIXED
Resolved on Jan 01, 2010 19:23
Version 1.0
OS All
CC @efriedma-quic,@nlewycky

Extended Description

483.xalancbmk retains this awesome constant expr until codegen:

%0 = load i16* getelementptr ([7 x i16]* @&#8203;_ZN11xercesc_2_5L17gIdeographicCharsE, i32 0, i32 add (i32 ashr (i32 sub (i32 ptrtoint (i16* getelementptr ([7 x i16]* @&#8203;_ZN11xercesc_2_5L17gIdeographicCharsE, i32 0, i32 4) to i32), i32 ptrtoint ([7 x i16]* @&#8203;_ZN11xercesc_2_5L17gIdeographicCharsE to i32)), i32 1), i32 1)), align 4		; <i16> [#uses=0]

This should get folded at the sub.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions