Commit 4bc817e9 authored by yb9976's avatar yb9976
Browse files

IA-32: Do not create cltd in case of only one user.

Using a sarl instruction has lower register demand.
parent feae70ad
......@@ -1817,7 +1817,7 @@ static ir_node *gen_Shrs(ir_node *node)
if (is_Const(right)) {
ir_tarval *tv = get_Const_tarval(right);
long val = get_tarval_long(tv);
if (val == 31) {
if (val == 31 && get_irn_n_edges(left) > 1) {
/* this is a sign extension */
dbg_info *dbgi = get_irn_dbg_info(node);
ir_node *block = be_transform_node(get_nodes_block(node));
......
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