[PatternMatch] define m_FNeg using m_FSub
authorSanjay Patel <spatel@rotateright.com>
Thu, 5 Apr 2018 15:36:55 +0000 (15:36 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 5 Apr 2018 15:36:55 +0000 (15:36 +0000)
commit2204520e49581352227091f9f052ff708ae1398b
treed3c7f70c2fb315a0cf2849f7b04fa62f5d43ec32
parent2ce9274da6e4bde6b4bbdbd518adaeee3d4e903d
[PatternMatch] define m_FNeg using m_FSub

Using cstfp_pred_ty in the definition allows us to match vectors with undef elements.

This replicates the change for m_Not from D44076 / rL326823 and continues
towards making all pattern matchers allow undef elements in vectors.

llvm-svn: 329303
llvm/include/llvm/IR/PatternMatch.h
llvm/test/Transforms/InstCombine/fcmp.ll
llvm/test/Transforms/InstCombine/fdiv.ll
llvm/test/Transforms/InstCombine/fma.ll
llvm/test/Transforms/InstCombine/fmul.ll