]> git.ipfire.org Git - thirdparty/gcc.git/commit
[AArch64] Improve poly_int handling in aarch64_layout_frame
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Oct 2019 10:50:53 +0000 (10:50 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 16 Oct 2019 10:50:53 +0000 (10:50 +0000)
commita8fd21555e679b23b9b980b620b68ca2b58f9a54
treeda3f70de7c8756fd0a84aed6a4d9e1918b84726e
parent2c6099c2c51b6bd6ac1f724f1e9152b037843a60
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277061 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64.c