]> granicus.if.org Git - llvm/commit
[InstCombine] Handle -(X-Y) --> (Y-X) for unary fneg when NSZ
authorCameron McInally <cameron.mcinally@nyu.edu>
Tue, 11 Jun 2019 16:21:21 +0000 (16:21 +0000)
committerCameron McInally <cameron.mcinally@nyu.edu>
Tue, 11 Jun 2019 16:21:21 +0000 (16:21 +0000)
commit35ebe10afc0de2721e2335cd13ee2a43a25a064d
tree17ed5b67f5edfe2e718a3fdc8fa54c4123b3dfca
parent1f188f7b0c13452243ffc0988adb73363f3a1a51
[InstCombine] Handle -(X-Y) --> (Y-X) for unary fneg when NSZ

Differential Revision: https://reviews.llvm.org/D62612

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