HomePhabricator

[SVE][CodeGen] Extend isConstantSplatValue to support ISD::SPLAT_VECTOR

Authored by kmclaughlin on Nov 26 2020, 2:54 AM.

Description

[SVE][CodeGen] Extend isConstantSplatValue to support ISD::SPLAT_VECTOR

Updated the affected scalable_of_scalable tests in sve-gep.ll, as isConstantSplatValue now returns true in DAGCombiner::visitMUL and folds (mul x, 1) -> x

Reviewed By: sdesmalen

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