[PatternMatch, InstSimplify] allow undef elements when matching any vector FP zero
authorSanjay Patel <spatel@rotateright.com>
Thu, 15 Mar 2018 14:29:27 +0000 (14:29 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 15 Mar 2018 14:29:27 +0000 (14:29 +0000)
commita4f42f2cfdf83c6a8e44728614335330a7dd24d2
treeee72e76a9286b8aba6e14d52af9d22e85e6c24f3
parent8f063d0c70dbd3aea79ae16a2d961bb133d2a17d
[PatternMatch, InstSimplify] allow undef elements when matching any vector FP zero

This matcher implementation appears to be slightly more efficient than
the generic constant check that it is replacing because every use was
for matching FP patterns, but the previous code would check int and
pointer type nulls too.

llvm-svn: 327627
llvm/include/llvm/IR/PatternMatch.h
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/fast-math.ll