PR tree-optimization/59154
	* tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
	rhs1 of a cast and new_op is invariant, fold_convert it.
	* tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
	simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@205307 138bc75d-0d04-0410-961f-82ee72b054a4