diff options
author | Claudiu Zissulescu <claziss@synopsys.com> | 2020-12-29 13:30:05 +0200 |
---|---|---|
committer | Claudiu Zissulescu <claziss@synopsys.com> | 2020-12-29 13:41:20 +0200 |
commit | 8a90673beda062a5495b4cb99e05ce9518701ac4 (patch) | |
tree | cac7c66c22ee45f5527a8d6be02f68a6141001ae /gcc/config/arc | |
parent | 5ccd07e3299b4e01d1899894412bfad798577350 (diff) | |
download | gcc-8a90673beda062a5495b4cb99e05ce9518701ac4.zip gcc-8a90673beda062a5495b4cb99e05ce9518701ac4.tar.gz gcc-8a90673beda062a5495b4cb99e05ce9518701ac4.tar.bz2 |
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>
Diffstat (limited to 'gcc/config/arc')
-rw-r--r-- | gcc/config/arc/arc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index d0a52ee..fb672c7 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -901,7 +901,7 @@ arc_secondary_reload (bool in_p, /* It is a pseudo that ends in a stack location. This procedure only works with the old reload step. */ - if (reg_equiv_mem (REGNO (x)) && !lra_in_progress) + if (!lra_in_progress && reg_equiv_mem (REGNO (x))) { /* Get the equivalent address and check the range of the offset. */ |