[llvm-commits] [126543] Clean up this macro to only eval each argument once.

clattner at apple.com clattner at apple.com
Wed Apr 25 09:53:00 PDT 2007


Revision: 126543
Author:   clattner
Date:     2007-04-25 09:52:59 -0700 (Wed, 25 Apr 2007)

Log Message:
-----------
Clean up this macro to only eval each argument once.

Modified Paths:
--------------
    apple-local/branches/llvm/gcc/expr.c

Modified: apple-local/branches/llvm/gcc/expr.c
===================================================================
--- apple-local/branches/llvm/gcc/expr.c	2007-04-25 11:17:44 UTC (rev 126542)
+++ apple-local/branches/llvm/gcc/expr.c	2007-04-25 16:52:59 UTC (rev 126543)
@@ -178,7 +178,7 @@
 /* LLVM always emits moves with memcpy, which allows us to make smart decisions
    later.  This affects CONSTRUCTOR lowering in the gimplifier.  */
 #undef MOVE_BY_PIECES_P
-#define MOVE_BY_PIECES_P(SIZE, ALIGN) ((SIZE-SIZE)+(ALIGN-ALIGN))
+#define MOVE_BY_PIECES_P(SIZE, ALIGN) (0*(SIZE)*(ALIGN))
 #endif
 /* APPLE LOCAL end LLVM */
 





More information about the llvm-commits mailing list