OSDN Git Service

[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)
commite2ee2c948f5b3050a106969089cba71334a9312b
tree4cb2c80ecfaf65ff67b0b9686d274c4acf14f19a
parent175ecc9798106cccf8a647e78fbbd7fd707fd465
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327627 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/PatternMatch.h
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/fast-math.ll