diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2005-07-01 22:01:17 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2005-07-01 15:01:17 -0700 |
commit | 7898840fde320acf0c3e8d3c35ec40fcff7221a8 (patch) | |
tree | 550a195febd08e1cb26ae88ec4c1db7334116f48 /gcc/tree-ssa-reassoc.c | |
parent | a04eae1bf3cfb764120e74b5167b6207da11f091 (diff) | |
download | gcc-7898840fde320acf0c3e8d3c35ec40fcff7221a8.zip gcc-7898840fde320acf0c3e8d3c35ec40fcff7221a8.tar.gz gcc-7898840fde320acf0c3e8d3c35ec40fcff7221a8.tar.bz2 |
re PR tree-optimization/22269 (ICE in tree-ssa-reassoc with uninitialized variables)
2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/22269
* tree-ssa-reassoc.c (should_transpose): Fix which operand
we check for SSA_NAME for.
2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
PR tree-opt/22269
* gcc.c-torture/compile/pr22269.c: New test.
From-SVN: r101519
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 5f0e8fc..395c549 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -406,7 +406,7 @@ should_transpose (tree rhs ATTRIBUTE_UNUSED, /* Also, see if the LHS's high ranked op should be switched with our RHS simply because it is greater in rank than our current RHS. */ - if (TREE_CODE (TREE_OPERAND (lhsdefop, 0)) == SSA_NAME) + if (TREE_CODE (TREE_OPERAND (lhsdefop, highrankop)) == SSA_NAME) { tree iop = SSA_NAME_DEF_STMT (TREE_OPERAND (lhsdefop, highrankop)); if (TREE_CODE (iop) == MODIFY_EXPR) |