aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.cc
diff options
context:
space:
mode:
authorliuhongt <hongtao.liu@intel.com>2023-11-13 17:56:49 +0800
committerliuhongt <hongtao.liu@intel.com>2023-11-14 16:40:46 +0800
commitf28306b4fd309b579c8a4a5bf2f1b24fa40f8f7f (patch)
tree131b0b4eb8313bc502e69bb4b6d08187ed45895a /gcc/tree-ssa-phiopt.cc
parent4a70bfbf686c2b6a1ecd83fe851de826c612c3e0 (diff)
downloadgcc-f28306b4fd309b579c8a4a5bf2f1b24fa40f8f7f.zip
gcc-f28306b4fd309b579c8a4a5bf2f1b24fa40f8f7f.tar.gz
gcc-f28306b4fd309b579c8a4a5bf2f1b24fa40f8f7f.tar.bz2
Fix ICE in vectorizable_nonlinear_induction with bitfield.
if (TREE_CODE (init_expr) == INTEGER_CST) init_expr = fold_convert (TREE_TYPE (vectype), init_expr); else gcc_assert (tree_nop_conversion_p (TREE_TYPE (vectype), TREE_TYPE (init_expr))); and init_expr is a 24 bit integer type while vectype has 32bit components. The "fix" is to bail out instead of asserting. gcc/ChangeLog: PR tree-optimization/112496 * tree-vect-loop.cc (vectorizable_nonlinear_induction): Return false when !tree_nop_conversion_p (TREE_TYPE (vectype), TREE_TYPE (init_expr)). gcc/testsuite/ChangeLog: * gcc.target/i386/pr112496.c: New test.
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions