OSDN Git Service

[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)
commitf4eb10a0cb9deed98f18441aaeabfa25ada51baa
tree743b3831ae22075e5e15544ee8d232574c3e44bd
parent381750391ce063d0899815eef1a626056c806ddc
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327307 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/PatternMatch.h
test/Transforms/InstSimplify/floating-point-arithmetic.ll