[InstCombine] move/add tests for fmul distribution; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 21 Mar 2018 21:28:19 +0000 (21:28 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 21 Mar 2018 21:28:19 +0000 (21:28 +0000)
commit1d0832d9a3ee4f7e19c000bd9adc11991d9dfe23
tree0c73ab48eb14bfa1d01d3b8a106a52b071ce90f7
parent8980449bb61271fad733e15183946b3def484f3c
[InstCombine] move/add tests for fmul distribution; NFC

There are at least 3 problems:
1. We're distributing across large patterns, but fail to do that for the minimal patterns.
2. We're not checking uses, so we may create more instructions than we eliminate.
3. We should be able to do these transforms with less than full 'fast' fmuls.

llvm-svn: 328152
llvm/test/Transforms/InstCombine/fast-math.ll
llvm/test/Transforms/InstCombine/fmul.ll