PR tree-optimization/86659
commitee20cb5728e358e69817b7991435879bd3773375
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Oct 2018 22:47:32 +0000 (8 22:47 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Oct 2018 22:47:32 +0000 (8 22:47 +0000)
tree55a2eadb0e412c74af6fb377fc0bc4509b62c233
parent68c330dca36d645b650f66a8c9ead11fc1908aa2
PR tree-optimization/86659
* gimple-match.h (struct gimple_match_op): Add reverse field.
(gimple_match_op::set_op): New overloaded method.
* gimple-match-head.c (maybe_build_generic_op) <BIT_FIELD_REF>: Set
the REF_REVERSE_STORAGE_ORDER flag on the value.
(gimple_simplify) <GIMPLE_ASSIGN>: For BIT_FIELD_REF, propagate the
REF_REVERSE_STORAGE_ORDER flag and avoid simplifying if it is set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264942 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gimple-match-head.c
gcc/gimple-match.h