From 740bf867b3ad5fdb1e8c5c688bfd6a4cd825ba76 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Tue, 14 Jun 2022 13:49:50 +0200 Subject: 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. --- amd64/isel.c | 1 - 1 file changed, 1 deletion(-) 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, -- cgit 1.4.1