TUESDAY, SEPTEMBER 8, 2026
tree-optimization
tree-optimization: Fix ICE in vect_create_constant_vectors
Corrects an Internal Compiler Error in vectorization by fixing a node checking mismatch.
An Internal Compiler Error (ICE) occurring within the vect_create_constant_vectors function has been resolved. The issue stemmed from a mismatch in the node being checked within vect_slp_analyze_node_operations, leading to subsequent errors. This fix ensures the correct node is evaluated, preventing the ICE and improving the reliability of the vectorization pass.
In Details
This commit fixes an ICE in vect_slp_analyze_node_operations (PR tree-optimization/127245) by ensuring the correct node is checked. The prior incorrect node check, an 'oops', led to a later ICE. The fix adds a check for vect_get_num_copies_for_invariant on the child node, resolving the mismatch.
For Context
- ICE
- Internal Compiler Error. A fatal error during compilation that indicates a bug within the compiler itself.
- vectorization
- An optimization technique that transforms scalar code into vector code, allowing the processor to perform the same operation on multiple data elements simultaneously.
- SLP
- Superword-Level Parallelism. An optimization technique that identifies and vectorizes sequences of independent scalar operations that operate on different data elements.