public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] ssa-loop-niter: skip caching of null operands
@ 2022-12-28 5:23 Alexandre Oliva
0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2022-12-28 5:23 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ab80e53a5b1f989514ba04e389f2a7498b13a595
commit ab80e53a5b1f989514ba04e389f2a7498b13a595
Author: Alexandre Oliva <oliva@adacore.com>
Date: Wed Dec 28 02:21:34 2022 -0300
ssa-loop-niter: skip caching of null operands
When a TREE_OPERAND is NULL, do not cache it.
for gcc/ChangeLog
* tree-ssa-loop-niter.cc (expand_simple_operands): Refrain
from caching NULL TREE_OPERANDs.
Diff:
---
gcc/tree-ssa-loop-niter.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/tree-ssa-loop-niter.cc b/gcc/tree-ssa-loop-niter.cc
index fece876099c..17645648326 100644
--- a/gcc/tree-ssa-loop-niter.cc
+++ b/gcc/tree-ssa-loop-niter.cc
@@ -2325,6 +2325,8 @@ expand_simple_operations (tree expr, tree stop, hash_map<tree, tree> &cache)
for (i = 0; i < n; i++)
{
e = TREE_OPERAND (expr, i);
+ if (!e)
+ continue;
/* SCEV analysis feeds us with a proper expression
graph matching the SSA graph. Avoid turning it
into a tree here, thus handle tree sharing
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] ssa-loop-niter: skip caching of null operands
@ 2022-12-23 7:31 Alexandre Oliva
0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2022-12-23 7:31 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:2c28594c0fb2a9cf1abff7d279aa1d40bbf3c006
commit 2c28594c0fb2a9cf1abff7d279aa1d40bbf3c006
Author: Alexandre Oliva <oliva@gnu.org>
Date: Thu Dec 22 21:28:52 2022 -0300
ssa-loop-niter: skip caching of null operands
Diff:
---
gcc/tree-ssa-loop-niter.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/tree-ssa-loop-niter.cc b/gcc/tree-ssa-loop-niter.cc
index fece876099c..17645648326 100644
--- a/gcc/tree-ssa-loop-niter.cc
+++ b/gcc/tree-ssa-loop-niter.cc
@@ -2325,6 +2325,8 @@ expand_simple_operations (tree expr, tree stop, hash_map<tree, tree> &cache)
for (i = 0; i < n; i++)
{
e = TREE_OPERAND (expr, i);
+ if (!e)
+ continue;
/* SCEV analysis feeds us with a proper expression
graph matching the SSA graph. Avoid turning it
into a tree here, thus handle tree sharing
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] ssa-loop-niter: skip caching of null operands
@ 2022-12-23 5:27 Alexandre Oliva
0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2022-12-23 5:27 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:e4f1923faff9f88fa62df2baa500a5b6f4ca53c7
commit e4f1923faff9f88fa62df2baa500a5b6f4ca53c7
Author: Alexandre Oliva <oliva@gnu.org>
Date: Thu Dec 22 21:28:52 2022 -0300
ssa-loop-niter: skip caching of null operands
Diff:
---
gcc/tree-ssa-loop-niter.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/tree-ssa-loop-niter.cc b/gcc/tree-ssa-loop-niter.cc
index fece876099c..17645648326 100644
--- a/gcc/tree-ssa-loop-niter.cc
+++ b/gcc/tree-ssa-loop-niter.cc
@@ -2325,6 +2325,8 @@ expand_simple_operations (tree expr, tree stop, hash_map<tree, tree> &cache)
for (i = 0; i < n; i++)
{
e = TREE_OPERAND (expr, i);
+ if (!e)
+ continue;
/* SCEV analysis feeds us with a proper expression
graph matching the SSA graph. Avoid turning it
into a tree here, thus handle tree sharing
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gcc(refs/users/aoliva/heads/testme)] ssa-loop-niter: skip caching of null operands
@ 2022-12-23 0:58 Alexandre Oliva
0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Oliva @ 2022-12-23 0:58 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:ec1ebb00d52fc27b0217a86c391ec84716a5488a
commit ec1ebb00d52fc27b0217a86c391ec84716a5488a
Author: Alexandre Oliva <oliva@gnu.org>
Date: Thu Dec 22 21:28:52 2022 -0300
ssa-loop-niter: skip caching of null operands
Diff:
---
gcc/tree-ssa-loop-niter.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/tree-ssa-loop-niter.cc b/gcc/tree-ssa-loop-niter.cc
index fece876099c..17645648326 100644
--- a/gcc/tree-ssa-loop-niter.cc
+++ b/gcc/tree-ssa-loop-niter.cc
@@ -2325,6 +2325,8 @@ expand_simple_operations (tree expr, tree stop, hash_map<tree, tree> &cache)
for (i = 0; i < n; i++)
{
e = TREE_OPERAND (expr, i);
+ if (!e)
+ continue;
/* SCEV analysis feeds us with a proper expression
graph matching the SSA graph. Avoid turning it
into a tree here, thus handle tree sharing
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-12-28 5:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-28 5:23 [gcc(refs/users/aoliva/heads/testme)] ssa-loop-niter: skip caching of null operands Alexandre Oliva
-- strict thread matches above, loose matches on Subject: below --
2022-12-23 7:31 Alexandre Oliva
2022-12-23 5:27 Alexandre Oliva
2022-12-23 0:58 Alexandre Oliva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).