diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2022-01-10 14:47:07 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2022-01-10 14:47:07 +0000 |
commit | 909a4b4764c4f270f09ccb2a950c91b21ed7b33a (patch) | |
tree | a0905da8f76ee15f99e16dbe341d83f601c43e15 /gcc/omp-expand.c | |
parent | bf37fd35a37985a0e19817f843d0bdd5ad504aa9 (diff) | |
download | gcc-909a4b4764c4f270f09ccb2a950c91b21ed7b33a.zip gcc-909a4b4764c4f270f09ccb2a950c91b21ed7b33a.tar.gz gcc-909a4b4764c4f270f09ccb2a950c91b21ed7b33a.tar.bz2 |
ira: Add comments and fix move_spill_restore calculation
This patch adds comments to describe each use of ira_loop_border_costs.
I think this highlights that move_spill_restore was using the wrong cost
in one case, which came from tranposing [0] and [1] in the original
(pre-ira_loop_border_costs) ira_memory_move_cost expressions. The
difference would only be noticeable on targets that distinguish between
load and store costs.
gcc/
PR rtl-optimization/98782
* ira-color.c (color_pass): Add comments to describe the spill costs.
(move_spill_restore): Likewise. Fix reversed calculation.
Diffstat (limited to 'gcc/omp-expand.c')
0 files changed, 0 insertions, 0 deletions