Re: [PATCH] Fix value numbering dealing with reverse byte order

2020-01-16 Thread Richard Biener
On January 16, 2020 9:13:46 AM GMT+01:00, apin...@marvell.com wrote: >From: Andrew Pinski > >Hi, > While working on bit-field lowering pass, I came across this bug. >The IR looks like: > VIEW_CONVERT_EXPR(var1) = _12; > _1 = BIT_FIELD_REF ; > >Where the BIT_FIELD_REF has REF_REVERSE_STORAGE_ORD

[PATCH] Fix value numbering dealing with reverse byte order

2020-01-16 Thread apinski
From: Andrew Pinski Hi, While working on bit-field lowering pass, I came across this bug. The IR looks like: VIEW_CONVERT_EXPR(var1) = _12; _1 = BIT_FIELD_REF ; Where the BIT_FIELD_REF has REF_REVERSE_STORAGE_ORDER set on it and var1's type has TYPE_REVERSE_STORAGE_ORDER set on it. PRE/FRE