HomePhabricator

[InstCombine] Handle vector gep with scalar argument in…

Description

[InstCombine] Handle vector gep with scalar argument in evaluateInDifferentElementOrder

This fixes PR41270.

The recursive function evaluateInDifferentElementOrder expects to be called
on a vector Value, so when we call it on a vector GEP's arguments, we must
first check that the argument is indeed a vector.

Details

Committed
uabelhoApr 1 2019, 6:48 AM
Parents
rL357384: [X86] Make post-ra scheduling macrofusion-aware.
Branches
Unknown
Tags
Unknown