This adds a missing case for PRE expression re-materialization.

Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed.

2020-08-06  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/96483
        * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
        POLY_INT_CST.
---
 gcc/tree-ssa-pre.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c
index 7d67305bf4b..0a94f4e3355 100644
--- a/gcc/tree-ssa-pre.c
+++ b/gcc/tree-ssa-pre.c
@@ -2644,6 +2644,7 @@ create_component_ref_by_pieces_1 (basic_block block, 
vn_reference_t ref,
       }
     case STRING_CST:
     case INTEGER_CST:
+    case POLY_INT_CST:
     case COMPLEX_CST:
     case VECTOR_CST:
     case REAL_CST:
-- 
2.26.2

Reply via email to