commit 740bf867b3ad5fdb1e8c5c688bfd6a4cd825ba76
parent 1162359a198ab6a18a734cb9f7955d0b28e342b6
Author: Quentin Carbonneaux <quentin@c9x.me>
Date: Tue, 14 Jun 2022 13:49:50 +0200
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:
1 file changed, 0 insertions(+), 1 deletion(-)
diff --git 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,