[AMDGPU] fix commuted case of sub combine
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 21 Feb 2019 02:58:00 +0000 (02:58 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 21 Feb 2019 02:58:00 +0000 (02:58 +0000)
commit42e229e13082a5dfb39aa43b40a8d7c75df92770
tree1be42eae845fbe619b9b552aa37c91c6b2f85ab2
parent500606f270ffcbdc199ee581fb2147700a7bb139
[AMDGPU] fix commuted case of sub combine

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

llvm-svn: 354543
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/combine-cond-add-sub.ll