[ISan] Fix ICE with ISan and -ftree-loop-vectorize 53/159253/3
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Tue, 7 Nov 2017 16:10:03 +0000 (19:10 +0300)
committerDenis Khalikov <d.khalikov@partner.samsung.com>
Thu, 9 Nov 2017 15:40:35 +0000 (18:40 +0300)
commit2fdbd3fb5ab97bcb33a8d1ae9950125ca544e10c
treeaa007c243bb6b8731d8f5ae3106d68a35f93fc25
parent91dc6cda498f9cd7c608bd1494ddcd2aacee9e84
[ISan] Fix ICE with ISan and -ftree-loop-vectorize

In case we want to vectorize the loop, we can not
rely only on TREE_OVERFLOW flag, while folding the INTEGER_CST,
which represents the step of vectorization.
We still should check TYPE_OVERFLOW_WRAPS flag instead
TYPE_OVERFLOW_SANITIZED flag, because the step could
be already marked as TREE_OVERFLOW == 1.

Change-Id: I1288b7e3b587c5773b184636bdfdada168b8941f
gcc/fold-const.c
gcc/testsuite/c-c++-common/isan/loop-vect.c [new file with mode: 0644]