diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2019-08-16 06:54:23 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2019-08-16 06:54:23 +0000 |
commit | 97ecc8d5769e947e8659d32be51846d40c90f50c (patch) | |
tree | 7451af2bf9f9c04582fba7f75cfc275b2619ddbb /gcc/ipa-cp.c | |
parent | e3cfbeaf6b655b9c00d77efb8220a8a16341cb2e (diff) |
Add type to VR_VARYING.
From-SVN: r274561
Diffstat (limited to 'gcc/ipa-cp.c')
-rw-r--r-- | gcc/ipa-cp.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ipa-cp.c b/gcc/ipa-cp.c index 34e68544fe6..0046064fea1 100644 --- a/gcc/ipa-cp.c +++ b/gcc/ipa-cp.c @@ -977,7 +977,12 @@ ipcp_vr_lattice::set_to_bottom () { if (m_vr.varying_p ()) return false; - m_vr.set_varying (); + /* ?? We create all sorts of VARYING ranges for floats, structures, + and other types which we cannot handle as ranges. We should + probably avoid handling them throughout the pass, but it's easier + to create a sensible VARYING here and let the lattice + propagate. */ + m_vr.set_varying (integer_type_node); return true; } |