HomePhabricator

[DAGCombiner] Teach isKnownToBeAPowerOfTwo handle SPLAT_VECTOR

Authored by jacquesguan on Aug 17 2021, 6:48 PM.

Description

[DAGCombiner] Teach isKnownToBeAPowerOfTwo handle SPLAT_VECTOR

Make DAGCombine turn mul by power of 2 into shl for scalable vector.

Reviewed By: frasercrmck

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

Details