Commit 5c8c573a by Roger Sayle Committed by Roger Sayle

re PR rtl-optimization/17151 (x >> (y % WORDSIZE) not optimized)


	PR middle-end/17151
	* combine.c (force_to_mode): Remove dubious early return test that
	inhibits further optimization.

From-SVN: r88129
parent bf4d99cf
2004-09-26 Roger Sayle <roger@eyesopen.com>
PR middle-end/17151
* combine.c (force_to_mode): Remove dubious early return test that
inhibits further optimization.
2004-09-26 Kazu Hirata <kazu@cs.umass.edu>
* profile.c: Fix a comment typo.
......
......@@ -6904,11 +6904,6 @@ force_to_mode (rtx x, enum machine_mode mode, unsigned HOST_WIDE_INT mask,
&& (GET_MODE_MASK (GET_MODE (x)) & ~mask) == 0)
return gen_lowpart (mode, x);
/* If we aren't changing the mode, X is not a SUBREG, and all zero bits in
MASK are already known to be zero in X, we need not do anything. */
if (GET_MODE (x) == mode && code != SUBREG && (~mask & nonzero) == 0)
return x;
switch (code)
{
case CLOBBER:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment