Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
23d5fb0c
Commit
23d5fb0c
authored
Jan 17, 2014
by
yb9976
Browse files
Fixed typos.
parent
0ca938cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/iropt.c
View file @
23d5fb0c
...
...
@@ -1924,13 +1924,13 @@ static ir_node *transform_bitwise_distributive(ir_node *n,
}
/**
* normali
s
ation: (x >> c1) & c2 to (x & (c2<<c1)) >> c1
* normali
z
ation: (x >> c1) & c2 to (x & (c2<<c1)) >> c1
* (we can use:
* - and, or, xor instead of &
* - Shl, Shr, Shrs instead of >>
* (with a special case for Or/Xor + Shrs)
*
* This normali
s
ation is usually good for the backend since << C can often be
* This normali
z
ation is usually good for the backend since << C can often be
* matched as address-mode.
*/
static
ir_node
*
transform_node_bitop_shift
(
ir_node
*
n
)
...
...
@@ -2319,7 +2319,7 @@ static ir_node *transform_node_Add(ir_node *n)
ir_node
*
c
;
HANDLE_BINOP_PHI
((
eval_func
)
tarval_add
,
a
,
b
,
c
,
mode
);
/* these optimizations are imprecise for floatingpoint ops */
/* these optimizations are imprecise for floating
-
point ops */
if
(
mode_is_float
(
mode
)
&&
!
ir_imprecise_float_transforms_allowed
())
return
n
;
...
...
@@ -3180,7 +3180,7 @@ static ir_node *transform_node_Switch(ir_node *n)
* - Shl, Shr, Shrs, rotl instead of >>
* (with a special case for Or/Xor + Shrs)
*
* This normali
s
ation is good for things like x-(x&y) esp. in 186.crafty.
* This normali
z
ation is good for things like x-(x&y) esp. in 186.crafty.
*/
static
ir_node
*
transform_node_shift_bitop
(
ir_node
*
n
)
{
...
...
@@ -4829,7 +4829,7 @@ static ir_node *transform_node_shift(ir_node *n)
}
/**
* normali
s
ation:
* normali
z
ation:
* (x << c1) >> c2 <=> x OP (c2-c1) & ((-1 << c1) >> c2)
* also:
* (x >> c1) << c2 <=> x OP (c2-c1) & ((-1 >> c1) << c2)
...
...
@@ -4930,7 +4930,7 @@ typedef ir_node*(*new_shift_func)(dbg_info *dbgi, ir_node *block,
ir_node
*
left
,
ir_node
*
right
,
ir_mode
*
mode
);
/**
* Normali
s
ation: if we have a shl/shr with modulo_shift behavio
u
r
* Normali
z
ation: if we have a shl/shr with modulo_shift behavior
* then we can use that to minimize the value of Add(x, const) or
* Sub(Const, x). In particular this often avoids 1 instruction in some
* backends for the Shift(x, Sub(Const, y)) case because it can be replaced
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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