Fix fcmp + fabs instcombines when using the intrinsic
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 8 Jan 2015 20:09:34 +0000 (20:09 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 8 Jan 2015 20:09:34 +0000 (20:09 +0000)
commit3b1f741856b01f0c9bbd0f8162b66964dad0590d
treee65e802aeebaa4de9adb6f4a2084087efe91478d
parentaa73f89bba57863579022e9d1c79621589edbe9a
Fix fcmp + fabs instcombines when using the intrinsic

This was only handling the libcall. This is another example
of why only the intrinsic should ever be used when it exists.

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