HomePhabricator

[X86] Fix chains update when lowering BUILD_VECTOR to a vector load

Description

[X86] Fix chains update when lowering BUILD_VECTOR to a vector load

The code which lowers BUILD_VECTOR of consecutive loads into a single vector
load doesn't update chains properly. As a result the vector load can be
reordered with the store to the same location.

The current code in EltsFromConsecutiveLoads only updates the chain following
the first load. The fix is to update the chains following all the loads
comprising the vector.

This is a fix for PR10114.

Reviewed By: niravd

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

Details

Committed
apilipenkoOct 5 2017, 9:28 AM
Reviewer
niravd
Differential Revision
D38547: [X86] Fix chains update when lowering BUILD_VECTOR to a vector load
Parents
rL314987: AMDGPU: Add and set AMDGPU-specific e_flags
Branches
Unknown
Tags
Unknown