GCC Bugzilla – Attachment 9728 Details for
Bug 18562
SSE constant vector initialization produces dead constant values on stack
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Patch which implements CONSTRUCTOR to VECTOR_CST
constructorvectorcst.diff.txt (text/plain), 921 bytes, created by
Andrew Pinski
on 2005-09-14 07:43:51 UTC
(
hide
)
Description:
Patch which implements CONSTRUCTOR to VECTOR_CST
Filename:
MIME Type:
Creator:
Andrew Pinski
Created:
2005-09-14 07:43:51 UTC
Size:
921 bytes
patch
obsolete
>Index: fold-const.c >=================================================================== >RCS file: /cvs/gcc/gcc/gcc/fold-const.c,v >retrieving revision 1.625 >diff -u -p -r1.625 fold-const.c >--- fold-const.c 9 Sep 2005 09:00:33 -0000 1.625 >+++ fold-const.c 14 Sep 2005 07:42:09 -0000 >@@ -10206,7 +10206,25 @@ fold (tree expr) > { > case CONST_DECL: > return fold (DECL_INITIAL (t)); >- >+ >+ case CONSTRUCTOR: >+ if (TREE_CODE (TREE_TYPE (t)) == VECTOR_TYPE) >+ { >+ bool constant_p = true; >+ unsigned HOST_WIDE_INT ix; >+ tree value; >+ VEC(constructor_elt,gc) *elts = CONSTRUCTOR_ELTS (t); >+ >+ FOR_EACH_CONSTRUCTOR_VALUE (elts, ix, value) >+ if (!CONSTANT_CLASS_P (value)) >+ { >+ constant_p = false; >+ break; >+ } >+ if (constant_p) >+ return build_vector_from_ctor (TREE_TYPE (t), elts); >+ } >+ return t; > default: > return t; > } /* switch (code) */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 18562
: 9728