]> granicus.if.org Git - llvm/commit
[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)
commit4408ff5e00b94a792ee323455bcd6c6e35a009d9
tree7610ecdaff97eb1a9f1d86edf21eba78e3bf8474
parent7db184f31ec1f5e1be12bb24e8af1c9c6d573a93
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354406 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/floating-point-compare.ll