OSDN Git Service

[LV] Let recordVectorLoopValueForInductionCast to check if IV was created from the...
authorAndrei Elovikov <andrei.elovikov@intel.com>
Tue, 20 Mar 2018 09:04:39 +0000 (09:04 +0000)
committerAndrei Elovikov <andrei.elovikov@intel.com>
Tue, 20 Mar 2018 09:04:39 +0000 (09:04 +0000)
commitafd766bf9c00bc1076d709c60b05b74b8cb549ad
treeee1aec173f6a3c90a0b5d9275bada28ecd961e04
parent1c3cdea2f181d8e14ee184466c5fb237f1b4cda8
[LV] Let recordVectorLoopValueForInductionCast to check if IV was created from the cast.

Summary:
It turned out to be error-prone to expect the callers to handle that - better to
leave the decision to this routine and make the required data to be explicitly
passed to the function.

This handles the case that was missed in the r322473 and fixes the assert
mentioned in PR36524.

Reviewers: dorit, mssimpso, Ayal, dcaballe

Reviewed By: dcaballe

Subscribers: Ka-Ka, hiraditya, dneilson, hsaito, llvm-commits

Differential Revision: https://reviews.llvm.org/D43812

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327960 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/X86/pr36524.ll [new file with mode: 0644]