[InstCombine] allow unordered preds when canonicalizing to fabs()
authorSanjay Patel <spatel@rotateright.com>
Mon, 10 Jun 2019 15:39:00 +0000 (15:39 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 10 Jun 2019 15:39:00 +0000 (15:39 +0000)
commit9650c95b7e55791faca4800c8f14f8325942a3b7
treedc17a922c4d7334ffdefc6d0d607e9a4598fb068
parentbaeea9193370deeefb19ea7602606e262fec9be6
[InstCombine] allow unordered preds when canonicalizing to fabs()

We have a known-never-nan value via 'nnan', so an unordered predicate
is the same as its ordered sibling.

Similar to:
rL362937

llvm-svn: 362954
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/fabs.ll