[Bug target/63390] [SH] Hoist/schedule constant pool loads

2014-09-28 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63390 --- Comment #1 from Oleg Endo olegendo at gcc dot gnu.org --- Adding a loop to the example above shows that function address loads are hoisted already out of loops, but constant loads are not. void foo (unsigned int, int); void test (unsigned

[Bug target/63390] [SH] Hoist/schedule constant pool loads

2014-09-28 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63390 --- Comment #2 from Oleg Endo olegendo at gcc dot gnu.org --- (In reply to Oleg Endo from comment #1) .L4: mov.l @r9,r4 constant load shlrr4 tst r4,r4 bt .L2 mov.l .L12,r5