diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-10-31 16:36:53 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2016-10-31 16:36:53 +0000 |
commit | cceb40ae0dee3210aaccdb9d404e74b067649fb8 (patch) | |
tree | 02f439cea6eedaa3c53b1e6b687c8ca3064e8283 /gcc/tree-ssa-reassoc.c | |
parent | 1c665bbbaa67a9a464dbd239381271341be4f9d2 (diff) |
PR tree-optimization/77860
* tree-ssa-reassoc.c (eliminate_using_constants): Handle
also integral complex and vector constants.
* gcc.dg/pr77860.c: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@241706 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
-rw-r--r-- | gcc/tree-ssa-reassoc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 99e1b414070..5dcf6720605 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -924,7 +924,7 @@ eliminate_using_constants (enum tree_code opcode, tree type = TREE_TYPE (oelast->op); if (oelast->rank == 0 - && (INTEGRAL_TYPE_P (type) || FLOAT_TYPE_P (type))) + && (ANY_INTEGRAL_TYPE_P (type) || FLOAT_TYPE_P (type))) { switch (opcode) { |