[ConstantFold] fp_binop undef, undef --> undef
authorSanjay Patel <spatel@rotateright.com>
Thu, 8 Mar 2018 20:42:49 +0000 (20:42 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 8 Mar 2018 20:42:49 +0000 (20:42 +0000)
commit2ee7b9349dafb9bbc2350473314fa8723efb3a43
tree7fce626edba54ccc0ce73f1e4abbc48cedf012d2
parentadad33011f3f5511e5959362fc33003e1e378eb6
[ConstantFold] fp_binop undef, undef --> undef

These are uncontroversial and independent of a proposed LangRef edits (D44216).

I tried to fix tests that would fold away:
rL327004
rL327028
rL327030
rL327034

I'm not sure if the Reassociate tests are meaningless yet, but they probably will be
as we add more folds, so if anyone has suggestions or wants to fix those, please do.

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

llvm-svn: 327058
llvm/lib/IR/ConstantFold.cpp
llvm/test/Transforms/InstCombine/X86/X86FsubCmpCombine.ll
llvm/test/Transforms/InstSimplify/fp-undef.ll
llvm/test/Transforms/Reassociate/factorize-again.ll
llvm/test/Transforms/Reassociate/fp-expr.ll