HomePhabricator

[InstCombine] fix use of base VectorType; NFC

Authored by spatel on Jun 1 2020, 11:06 AM.

Description

[InstCombine] fix use of base VectorType; NFC

SimplifyDemandedVectorElts() bails out on ScalableVectorType
anyway, but we can exit faster with the external check.

Move this to a helper function because there are likely other
vector folds that we can try here.

Details

Committed
spatelJun 1 2020, 11:28 AM
Parents
rG89d48ccabe6a: AMDGPU: Fix not emitting nofpexcept on fdiv expansion
Branches
Unknown
Tags
Unknown