HomePhabricator

[InstCombine] Handle vector gep with scalar argument in…

Description

[InstCombine] Handle vector gep with scalar argument in evaluateInDifferentElementOrder

Summary:
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.

Reviewers: reames, spatel

Reviewed By: spatel

Subscribers: llvm-commits

Tags: #llvm

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

Details

Committed
uabelhoApr 1 2019, 7:10 AM
Reviewer
spatel
Differential Revision
D60058: [InstCombine] Handle vector gep with scalar argument in evaluateInDifferentElementOrder
Parents
rL357388: X86: Fix override warning
Branches
Unknown
Tags
Unknown