[PatternMatch, InstSimplify] allow undef elements when matching vector -0.0
authorSanjay Patel <spatel@rotateright.com>
Mon, 12 Mar 2018 18:17:01 +0000 (18:17 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 12 Mar 2018 18:17:01 +0000 (18:17 +0000)
commita0d8d127c6c1756d78c7528699c630427b184d41
tree82d766b4e7e5fcda8581ff07559d39f3253facda
parentf0a9b253940049700064ce777acd16d94c4ec9e2
[PatternMatch, InstSimplify] allow undef elements when matching vector -0.0

This is the FP equivalent of D42818. Use it for the few cases in InstSimplify
with -0.0 folds (that's the only current use of m_NegZero()).

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

llvm-svn: 327307
llvm/include/llvm/IR/PatternMatch.h
llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll