OSDN Git Service

[InstCombine] check uses before creating instructions for fmul distribution
authorSanjay Patel <spatel@rotateright.com>
Mon, 26 Mar 2018 14:25:43 +0000 (14:25 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 26 Mar 2018 14:25:43 +0000 (14:25 +0000)
commit4432622fbc89cbe083c7190476376c5339534ca9
tree7ee64b78b2aa03c0d88fe86aead8e14ceb388b1b
parent74c171f5c087154f2ed3556469ff81afc6ff2a8c
[InstCombine] check uses before creating instructions for fmul distribution

As the tests show, we could create extra instructions without any obvious benefit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328498 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
test/Transforms/InstCombine/fmul.ll