Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
8d110b72
Commit
8d110b72
authored
Oct 27, 2015
by
yb9976
Browse files
Added local optimization: a >>u a -> 0.
parent
cbfce4f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/iropt.c
View file @
8d110b72
...
...
@@ -525,7 +525,7 @@ static ir_tarval *computed_value_Shr(const ir_node *n)
if
(
ta
!=
tarval_unknown
&&
tb
!=
tarval_unknown
)
return
tarval_shr
(
ta
,
tb
);
if
(
is_oversize_shift
(
n
))
if
(
a
==
b
||
is_oversize_shift
(
n
))
return
get_mode_null
(
get_irn_mode
(
n
));
return
tarval_unknown
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment