[AArch64] Improve poly_int handling in aarch64_layout_frame
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 16 Oct 2019 10:50:53 +0000 (10:50 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 16 Oct 2019 10:50:53 +0000 (10:50 +0000)
commit9b17a646d90ad0cc30daf8432aa60ad0d751d914
treeda3f70de7c8756fd0a84aed6a4d9e1918b84726e
parent8e66b377a93e3fc371d0836768740d68ef8fffc5
[AArch64] Improve poly_int handling in aarch64_layout_frame

I'd used known_lt when converting these conditions to poly_int,
but on reflection that was a bad choice.  The code isn't just
doing a range check; it specifically needs constants that will
fit in a certain encoding.

2019-10-16  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
rather than known_lt when choosing frame layouts.

From-SVN: r277061
gcc/ChangeLog
gcc/config/aarch64/aarch64.c