[SVE] Fix bad FixedVectorType cast in simplifyDivRem
authorChristopher Tetreault <ctetreau@quicinc.com>
Tue, 16 Jun 2020 19:52:13 +0000 (12:52 -0700)
committerChristopher Tetreault <ctetreau@quicinc.com>
Tue, 16 Jun 2020 20:17:05 +0000 (13:17 -0700)
commit747486991cc452f7a1861e4a7a30d069d5f34aab
treeefd07a097323e3935d06ceaa1555b5f426c586e5
parent6e78a3086a7f563cc55d2ba83a8697b3320857fb
[SVE] Fix bad FixedVectorType cast in simplifyDivRem

Summary:
simplifyDivRem attempts to walk a VectorType elementwise. Ensure that it
only does so for FixedVectorType

Reviewers: efriedma, spatel, lebedev.ri, david-arm, kmclaughlin

Reviewed By: spatel, david-arm

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81856
llvm/lib/Analysis/InstructionSimplify.cpp