constant when choosing (plus (ashift ...)) as a split point.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223736
138bc75d-0d04-0410-961f-
82ee72b054a4
2015-05-26 Jeff Law <law@redhat.com>
+ * combine.c (find_split_point): Verify that the shift count is a
+ constant when choosing (plus (ashift ...)) as a split point.
+
* tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
No functional changes.
worthless to try this split. */
if (!set_src
&& (GET_CODE (XEXP (x, 0)) == MULT
- || GET_CODE (XEXP (x, 0)) == ASHIFT))
+ || (GET_CODE (XEXP (x, 0)) == ASHIFT
+ && GET_CODE (XEXP (XEXP (x, 0), 1)) == CONST_INT)))
return loc;
default: