diff options
author | Michael Berg <michael_c_berg@apple.com> | 2019-10-14 17:39:32 +0000 |
---|---|---|
committer | Michael Berg <michael_c_berg@apple.com> | 2019-10-14 17:39:32 +0000 |
commit | 5af0201c2a08370fd3782b445cd96603d7988fd4 (patch) | |
tree | fe39c1bd6677965bf9ae6601d287517de052c81d /llvm/lib/Bitcode | |
parent | 1d32d8b176dc3c89b26c8322120cfeeb0f31ff2d (diff) | |
download | llvm-5af0201c2a08370fd3782b445cd96603d7988fd4.zip llvm-5af0201c2a08370fd3782b445cd96603d7988fd4.tar.gz llvm-5af0201c2a08370fd3782b445cd96603d7988fd4.tar.bz2 |
Add FMF to vector ops for phi
Summary: Small amendment to handle vector cases for D67564.
Reviewers: spatel, eli.friedman, hfinkel, cameron.mcinally, arsenm, jmolloy, bogner
Reviewed By: cameron.mcinally, bogner
Subscribers: llvm-commits, efriedma, reames, bogner, wdng
Differential Revision: https://reviews.llvm.org/D68748
llvm-svn: 374794
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index bd1115f..9bf3947 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -4641,7 +4641,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) { // There is an optional final record for fast-math-flags if this phi has a // floating-point type. size_t NumArgs = (Record.size() - 1) / 2; - if ((Record.size() - 1) % 2 == 1 && !Ty->isFloatingPointTy()) + if ((Record.size() - 1) % 2 == 1 && !Ty->isFPOrFPVectorTy()) return error("Invalid record"); PHINode *PN = PHINode::Create(Ty, NumArgs); |