diff options
author | Quentin Carbonneaux <quentin@c9x.me> | 2022-06-14 13:49:50 +0200 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2022-06-14 13:49:50 +0200 |
commit | 740bf867b3ad5fdb1e8c5c688bfd6a4cd825ba76 (patch) | |
tree | ca36496eef779757ad59a0a80b4b9d395cd15287 /amd64 | |
parent | 1162359a198ab6a18a734cb9f7955d0b28e342b6 (diff) | |
download | roux-740bf867b3ad5fdb1e8c5c688bfd6a4cd825ba76.tar.gz |
do not fold cnst+cnst in amd64's isel
This may cause invalid assembly to be generated and is not all that useful anyway after constant folding has run.
Diffstat (limited to 'amd64')
-rw-r--r-- | amd64/isel.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/amd64/isel.c b/amd64/isel.c index 9dffd06..5a64429 100644 --- a/amd64/isel.c +++ b/amd64/isel.c @@ -536,7 +536,6 @@ anumber(ANum *ai, Blk *b, Con *con) * 0 * 2 -> 3 s * i (when constant is 1,2,4,8) */ static char add[10][10] = { - [2] [2] = 2, /* folding */ [2] [4] = 4, [4] [2] = 4, [2] [6] = 6, [6] [2] = 6, [2] [7] = 7, [7] [2] = 7, |