tree-optimization/96483 - fix ICE in PRE with POLY_INT_CST
authorRichard Biener <rguenther@suse.de>
Thu, 6 Aug 2020 10:16:05 +0000 (12:16 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 6 Aug 2020 10:16:05 +0000 (12:16 +0200)
This adds a missing case for PRE expression re-materialization.

2020-08-06  Richard Biener  <rguenther@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

index 7d67305bf4bab499cb159a972e3d2526b1892d64..0a94f4e3355c57cebf27156e1644733309153546 100644 (file)
@@ -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: