[NaryReassociate] Add support for Mul instructions
authorMarcello Maggioni <hayarms@gmail.com>
Tue, 15 Sep 2015 17:22:52 +0000 (17:22 +0000)
committerMarcello Maggioni <hayarms@gmail.com>
Tue, 15 Sep 2015 17:22:52 +0000 (17:22 +0000)
commit2509f522f6b6c1f687504807d0a1bd508f4df457
tree87761fc861a0a6e95d1e969f0237ea9ea97770a2
parent47b167dd84902e2cdc4796d68ddcfa5f540a67cd
[NaryReassociate] Add support for Mul instructions

This patch extends the current pass by handling
Mul instructions as well.

Patch by: Volkan Keles (vkeles@apple.com)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247705 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/NaryReassociate.cpp
test/Transforms/NaryReassociate/nary-mul.ll [new file with mode: 0644]