diff options
author | Kerry McLaughlin <kerry.mclaughlin@arm.com> | 2021-06-08 09:16:07 +0100 |
---|---|---|
committer | Kerry McLaughlin <kerry.mclaughlin@arm.com> | 2021-06-08 10:39:29 +0100 |
commit | 14eeccfe9adb372c76d11d6ffa98fdb6e9808acc (patch) | |
tree | 1d39a53c35a32df2e17bdcb6464e0ffa19ee90fe /llvm/lib/CodeGen/CommandFlags.cpp | |
parent | 7116468ca9d0ebec1d97d58d99879eaf7e7a3982 (diff) | |
download | llvm-14eeccfe9adb372c76d11d6ffa98fdb6e9808acc.zip llvm-14eeccfe9adb372c76d11d6ffa98fdb6e9808acc.tar.gz llvm-14eeccfe9adb372c76d11d6ffa98fdb6e9808acc.tar.bz2 |
[LoopVectorize] Don't use strict reductions when reordering is allowed
If the `-enable-strict-reductions` flag is set to true, then currently we will
always choose to vectorize the loop with strict in-order reductions. This is
not necessary where we allow the reordering of FP operations, such as
when loop hints are passed via metadata.
This patch moves useOrderedReductions so that we can also check whether
loop hints allow reordering, in which case we should use the default
behaviour of vectorizing with unordered reductions.
Reviewed By: sdesmalen
Differential Revision: https://reviews.llvm.org/D103814
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
0 files changed, 0 insertions, 0 deletions