mirror of
git://c9x.me/qbe.git
synced 2026-04-05 18:09:47 +00:00
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.
This commit is contained in:
parent
1162359a19
commit
740bf867b3
@ -536,7 +536,6 @@ anumber(ANum *ai, Blk *b, Con *con)
|
|||||||
* 0 * 2 -> 3 s * i (when constant is 1,2,4,8)
|
* 0 * 2 -> 3 s * i (when constant is 1,2,4,8)
|
||||||
*/
|
*/
|
||||||
static char add[10][10] = {
|
static char add[10][10] = {
|
||||||
[2] [2] = 2, /* folding */
|
|
||||||
[2] [4] = 4, [4] [2] = 4,
|
[2] [4] = 4, [4] [2] = 4,
|
||||||
[2] [6] = 6, [6] [2] = 6,
|
[2] [6] = 6, [6] [2] = 6,
|
||||||
[2] [7] = 7, [7] [2] = 7,
|
[2] [7] = 7, [7] [2] = 7,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user