[SLSR] use 'match' to simplify code; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 23 Oct 2018 14:07:39 +0000 (14:07 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 23 Oct 2018 14:07:39 +0000 (14:07 +0000)
commit5141435d232be4ff1efb841667c931c89525c89f
tree1e21d8f3c88c964d24d06f0358c884a79014f893
parent6d57266a8cf82b37d79dafebbd5aa81cd0897a64
[SLSR] use 'match' to simplify code; NFC

This pass could probably be modified slightly to allow
vector splat transforms for practically no cost, but
it only works on scalars for now. So the use of the
newer 'match' API should make no functional difference.

llvm-svn: 345030
llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
llvm/test/Transforms/StraightLineStrengthReduce/slsr-add.ll