[InstCombine] limit X - (cast(-Y) --> X + cast(Y) with hasOneUse()
authorSanjay Patel <spatel@rotateright.com>
Wed, 11 Apr 2018 15:57:18 +0000 (15:57 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 11 Apr 2018 15:57:18 +0000 (15:57 +0000)
commitff98682c9c60b57e09937abfd3436520232a9bdc
treed59065c723901f12cf790a879c779db94d182d9f
parent0195469a238095c451ce00008d94abd53a055451
[InstCombine] limit X - (cast(-Y) --> X + cast(Y) with hasOneUse()

llvm-svn: 329821
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/fsub.ll