further optimize non-store-motion LIM
authorRichard Biener <rguenther@suse.de>
Mon, 16 Nov 2020 13:25:56 +0000 (14:25 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 16 Nov 2020 14:21:24 +0000 (15:21 +0100)
commitd1746388db6481d87f5a801d79b17566fc6888da
treed48fc1af2249bc8cdb9fe4365d6c8694e5f3ebdf
parent2f473f4b065d3cc0cb044db357e666109f227e94
further optimize non-store-motion LIM

This removes useless work from LIM when store-motion is disabled.

2020-11-16   Richard Biener  <rguenther@suse.de>

* tree-ssa-loop-im.c (analyze_memory_references): Add
store_motion parameter and elide unnecessary work.
(tree_ssa_lim_initialize): Likewise.
(loop_invariant_motion_in_fun): Pass down store_motion.
gcc/tree-ssa-loop-im.c