[llvm-commits] [llvm-gcc-4.2] r41836 - /llvm-gcc-4.2/trunk/gcc/fold-const.c
Chris Lattner
sabre at nondot.org
Mon Sep 10 21:56:31 PDT 2007
Author: lattner
Date: Mon Sep 10 23:56:31 2007
New Revision: 41836
URL: http://llvm.org/viewvc/llvm-project?rev=41836&view=rev
Log:
Stop GCC from folding x*x -> pow/powf to work around PR1631
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=41836&r1=41835&r2=41836&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/fold-const.c (original)
+++ llvm-gcc-4.2/trunk/gcc/fold-const.c Mon Sep 10 23:56:31 2007
@@ -9380,6 +9380,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))
@@ -9394,6 +9397,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