]> git.ipfire.org Git - thirdparty/gcc.git/commit
Make get_value_for_expr check for INTEGER_CSTs
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Sep 2019 09:44:06 +0000 (09:44 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Sep 2019 09:44:06 +0000 (09:44 +0000)
commit64dd9ffcf41f33da9184458dc7885f5bf1bcdd3a
tree7475580dc8584bff3b6f8673bc7a29a53311e250
parent2cf069e1b52b36c264fedb3b3efaa43cb8d51842
Make get_value_for_expr check for INTEGER_CSTs

CONSTANT lattice values are symbolic constants rather than
compile-time constants, so among other things can be POLY_INT_CSTs.
This patch fixes a case in which we assumed all CONSTANTs were either
ADDR_EXPRs or INTEGER_CSTs.

This is tested by later SVE patches.

2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
are INTEGER_CSTs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@275871 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-ccp.c