فهرست منبع

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.
Quentin Carbonneaux 3 سال پیش
والد
کامیت
740bf867b3
1فایلهای تغییر یافته به همراه0 افزوده شده و 1 حذف شده
  1. 0 1
      amd64/isel.c

+ 0 - 1
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)
 	 *   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,