This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/64774] [ARM/thumb] missed optimization: pc relative ldr used when constant can be derived from register


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64774

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |arm
           Priority|P3                          |P5
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-01-28
     Ever confirmed|0                           |1

--- Comment #1 from Richard Earnshaw <rearnsha at gcc dot gnu.org> ---
Although the compiler tries to find some common cases, it is generally
infeasible to detect all the possible permutations that exist.  Furthermore, in
real code generating common expressions in this way can increase register
pressure and have additional impact on some optimization passes.

I don't hold out much hope of this sort of problem ever being entirely fixed.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]