HomePhabricator

[AArch64][GlobalISel] Make vector dup optimization look at last elt of ZeroVec

Description

[AArch64][GlobalISel] Make vector dup optimization look at last elt of ZeroVec

Fix an off-by-one error which made us not look at the last element of the
zero vector. This caused a miscompile in 188.ammp.

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

Details