OSDN Git Service

Vectorizer: track non-fast FP instructions through phis when finding reductions.
authorTim Northover <tnorthover@apple.com>
Fri, 27 May 2016 16:40:27 +0000 (16:40 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 27 May 2016 16:40:27 +0000 (16:40 +0000)
commite1ebc76f2d2b62ac6d05fd315d23974592e8b917
treef0b29ee0d46d52cac14c495b84584fc6dc2ab2fa
parent12ee1c151261175d2e606ed40d268d385a99aafb
Vectorizer: track non-fast FP instructions through phis when finding reductions.

When we traced through a phi node looking for floating-point reductions, we
forgot whether we'd ever seen an instruction without fast-math flags (that
would block vectorization). This propagates it through to the end.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271015 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopUtils.cpp
test/Transforms/LoopVectorize/imprecise-through-phis.ll [new file with mode: 0644]