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
5900c266
Commit
5900c266
authored
Apr 04, 2016
by
Matthias Braun
Browse files
ia32: Fix lea peephole not updating address mode variant
parent
a5362ad5
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_optimize.c
View file @
5900c266
...
...
@@ -977,7 +977,9 @@ exchange:
}
if
(
!
breg
&&
scale
==
1
)
{
/* lea c(, %i, 2), %d -> lea c(%i, %i), %d */
assert
(
ireg
!=
NULL
);
set_irn_n
(
node
,
n_ia32_Lea_base
,
idx
);
attr
->
addr
.
variant
=
X86_ADDR_BASE_INDEX
;
attr
->
addr
.
log_scale
=
0
;
}
}
...
...
ir/be/ia32/x86_address_mode.h
View file @
5900c266
...
...
@@ -16,7 +16,7 @@
#include <stdint.h>
#include "x86_imm.h"
typedef
enum
{
typedef
enum
x86_addr_variant_t
{
X86_ADDR_INVALID
,
X86_ADDR_REG
,
X86_ADDR_JUST_IMM
,
...
...
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