[llvm-commits] [llvm-gcc-4.2] r58583 - /llvm-gcc-4.2/trunk/gcc/tree-ssa-loop-ivopts.c
Bill Wendling
isanbard at gmail.com
Sun Nov 2 17:51:51 PST 2008
Author: void
Date: Sun Nov 2 19:51:51 2008
New Revision: 58583
URL: http://llvm.org/viewvc/llvm-project?rev=58583&view=rev
Log:
Treat (vector)scalar like (aggregate)scalar.
Modified:
llvm-gcc-4.2/trunk/gcc/tree-ssa-loop-ivopts.c
Modified: llvm-gcc-4.2/trunk/gcc/tree-ssa-loop-ivopts.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/tree-ssa-loop-ivopts.c?rev=58583&r1=58582&r2=58583&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/tree-ssa-loop-ivopts.c (original)
+++ llvm-gcc-4.2/trunk/gcc/tree-ssa-loop-ivopts.c Sun Nov 2 19:51:51 2008
@@ -1489,8 +1489,12 @@
and make them look addressable. After some processing the
non-addressability may be uncovered again, causing ADDR_EXPRs
of inappropriate objects to be built. */
- return AGGREGATE_TYPE_P (TREE_TYPE (expr))
- && !AGGREGATE_TYPE_P (TREE_TYPE (TREE_OPERAND (expr, 0)));
+ /* APPLE LOCAL begin 6187262 */
+ return ((AGGREGATE_TYPE_P (TREE_TYPE (expr))
+ || TREE_CODE (TREE_TYPE (expr)) == VECTOR_TYPE)
+ && !(AGGREGATE_TYPE_P (TREE_TYPE (TREE_OPERAND (expr, 0)))
+ || TREE_CODE (TREE_TYPE (TREE_OPERAND (expr, 0))) == VECTOR_TYPE));
+ /* APPLE LOCAL end 6187262 */
default:
break;
More information about the llvm-commits
mailing list