diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2015-11-29 18:11:54 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2015-11-29 13:11:54 -0500 |
commit | 9ddc16eb1afc918935594e87c2dda8367ab697f3 (patch) | |
tree | bf5b932419421c7a595824c69a2c4f64f2dcda80 /gcc/config | |
parent | 8eb7b6f69d56f26643037c9404088289e7f2601a (diff) | |
download | gcc-9ddc16eb1afc918935594e87c2dda8367ab697f3.zip gcc-9ddc16eb1afc918935594e87c2dda8367ab697f3.tar.gz gcc-9ddc16eb1afc918935594e87c2dda8367ab697f3.tar.bz2 |
re PR target/28115 (possible bug in recog_memoized usage in rs6000.c??)
PR target/28115
* config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
recog_memoized test for insn and check recog_memoized for dep_insn.
From-SVN: r231045
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index ba00b61..a38e70d 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -28544,8 +28544,8 @@ rs6000_adjust_cost (rtx_insn *insn, rtx link, rtx_insn *dep_insn, int cost) { enum attr_type attr_type; - if (! recog_memoized (insn)) - return 0; + if (recog_memoized (insn) < 0 || recog_memoized (dep_insn) < 0) + return cost; switch (REG_NOTE_KIND (link)) { |