HomePhabricator

[GlobalISel] Add new combine to convert scalar G_MUL to G_SHL.

Authored by aemerson on Jan 29 2020, 9:42 AM.

Description

[GlobalISel] Add new combine to convert scalar G_MUL to G_SHL.

For pow2 constants we should use G_SHL for pattern matching (and perf)
purposes later.

Vector support not yet implemented.

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