[InstSimplify] use any-zero matcher for fcmp folds
authorSanjay Patel <spatel@rotateright.com>
Wed, 20 Feb 2019 00:09:50 +0000 (00:09 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 20 Feb 2019 00:09:50 +0000 (00:09 +0000)
commit058bb8351351d56d2a4e8a772570231f9e5305e5
treec1ed7b7acf0ae76ceba6318b4efdab03c049893e
parent3ae672623401ab9e0b5adc1c10cfd371246ab207
[InstSimplify] use any-zero matcher for fcmp folds

The m_APFloat matcher does not work with anything but strict
splat vector constants, so we could miss these folds and then
trigger an assertion in instcombine:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13201

llvm-svn: 354406
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/floating-point-compare.ll