[llvm-commits] [llvm-gcc-4.2] r109556 - /llvm-gcc-4.2/trunk/gcc/fold-const.c
Stuart Hastings
stuart at apple.com
Tue Jul 27 16:15:07 PDT 2010
Author: stuart
Date: Tue Jul 27 18:15:06 2010
New Revision: 109556
URL: http://llvm.org/viewvc/llvm-project?rev=109556&view=rev
Log:
Defeat const-multiply folding across a MIN(). Radar 8198362.
Modified:
llvm-gcc-4.2/trunk/gcc/fold-const.c
Modified: llvm-gcc-4.2/trunk/gcc/fold-const.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/fold-const.c?rev=109556&r1=109555&r2=109556&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/fold-const.c (original)
+++ llvm-gcc-4.2/trunk/gcc/fold-const.c Tue Jul 27 18:15:06 2010
@@ -5714,6 +5714,9 @@
if (TYPE_UNSIGNED (ctype) != TYPE_UNSIGNED (type))
break;
+ /* LLVM LOCAL 8198362 */
+ if (TYPE_UNSIGNED (ctype)) break;
+
/* MIN (a, b) / 5 -> MIN (a / 5, b / 5) */
sub_strict_overflow_p = false;
if ((t1 = extract_muldiv (op0, c, code, wide_type,
More information about the llvm-commits
mailing list