arc: flip if-condition predicates in secondary reload hook
authorClaudiu Zissulescu <claziss@synopsys.com>
Tue, 29 Dec 2020 11:30:05 +0000 (13:30 +0200)
committerClaudiu Zissulescu <claziss@synopsys.com>
Tue, 29 Dec 2020 11:41:20 +0000 (13:41 +0200)
commit8a90673beda062a5495b4cb99e05ce9518701ac4
treecac7c66c22ee45f5527a8d6be02f68a6141001ae
parent5ccd07e3299b4e01d1899894412bfad798577350
arc: flip if-condition predicates in secondary reload hook

The ARC code contains code which should only work with the old reload
pass. Such code is found in arc_secondary_reload hook, however it was
not properly quarded. Reverse the if-condition predicate such that
req_equiv_mem is called when lra is not in progress.

gcc/
2020-12-29  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (arc_secondary_reload): Flip if-condition
predicates.

Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
gcc/config/arc/arc.c