(shorten_compare): When simplify compare against
zero, check for restype_ptr unsigned instead of primop0 unsigned. From-SVN: r6806
This commit is contained in:
parent
6b972c4f89
commit
597681f6d1
|
@ -1651,7 +1651,7 @@ shorten_compare (op0_ptr, op1_ptr, restype_ptr, rescode_ptr)
|
|||
primop1 = op1;
|
||||
|
||||
if (!real1 && !real2 && integer_zerop (primop1)
|
||||
&& TREE_UNSIGNED (TREE_TYPE (primop0)))
|
||||
&& TREE_UNSIGNED (*restype_ptr))
|
||||
{
|
||||
tree value = 0;
|
||||
switch (code)
|
||||
|
|
Loading…
Reference in New Issue