[Bug tree-optimization/95685] Loop invariants can't be moved out of the loop

2020-06-15 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95685 --- Comment #2 from Richard Biener --- I wonder why CSE2 (after loop) does not catch the redundancies at least. Hmm, guess EBB is too local? But then there's gcse2?

[Bug tree-optimization/95685] Loop invariants can't be moved out of the loop

2020-06-15 Thread wilson at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95685 --- Comment #1 from Jim Wilson --- The problem with the constant isn't apparent until we reach RTL generation and see that it requires two instructions to load. Then once in RTL optimization passes we have mostly block local optimizations that a