projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8251f31
)
ssa-loop-niter: skip caching of null operands
author
Alexandre Oliva
<oliva@adacore.com>
Thu, 29 Dec 2022 17:32:53 +0000
(14:32 -0300)
committer
Alexandre Oliva
<oliva@gnu.org>
Thu, 29 Dec 2022 17:39:46 +0000
(14:39 -0300)
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.
gcc/tree-ssa-loop-niter.cc
patch
|
blob
|
history
diff --git
a/gcc/tree-ssa-loop-niter.cc
b/gcc/tree-ssa-loop-niter.cc
index
fece876
..
1764564
100644
(file)
--- 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