[llvm-commits] [llvm-gcc-4.0] r41835 - /llvm-gcc-4.0/trunk/gcc/fold-const.c
Chris Lattner
sabre at nondot.org
Mon Sep 10 21:55:22 PDT 2007
Author: lattner
Date: Mon Sep 10 23:55:22 2007
New Revision: 41835
URL: http://llvm.org/viewvc/llvm-project?rev=41835&view=rev
Log:
Stop GCC from folding x*x -> pow/powf to work around PR1631
Modified:
llvm-gcc-4.0/trunk/gcc/fold-const.c
Modified: llvm-gcc-4.0/trunk/gcc/fold-const.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/fold-const.c?rev=41835&r1=41834&r2=41835&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/fold-const.c (original)
+++ llvm-gcc-4.0/trunk/gcc/fold-const.c Mon Sep 10 23:55:22 2007
@@ -7997,6 +7997,9 @@
}
}
+ /* LLVM LOCAL Disable pow generation (FIXME: PR1631) */
+#ifndef ENABLE_LLVM
+
/* Optimize x*x as pow(x,2.0), which is expanded as x*x. */
if (! optimize_size
&& operand_equal_p (arg0, arg1, 0))
@@ -8011,6 +8014,8 @@
return build_function_call_expr (powfn, arglist);
}
}
+ /* LLVM LOCAL Disable pow generation (FIXME: PR1631) */
+#endif /*ENABLE_LLVM*/
}
}
goto associate;
More information about the llvm-commits
mailing list