aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2020-01-27 16:49:50 -0800
committerWei Mi <wmi@google.com>2020-01-27 16:53:20 -0800
commitf60671f049bcbe1de8f24ca2bb50aa23564e6a7f (patch)
tree81bd57ba2dc9dc95b64716706a7394577290030a /clang/lib/Frontend/CompilerInvocation.cpp
parent949294f39627421f4bfaaca7d5d9deacb33efbe0 (diff)
downloadllvm-f60671f049bcbe1de8f24ca2bb50aa23564e6a7f.zip
llvm-f60671f049bcbe1de8f24ca2bb50aa23564e6a7f.tar.gz
llvm-f60671f049bcbe1de8f24ca2bb50aa23564e6a7f.tar.bz2
[LV] Remove nondeterminacy by changing LoopVectorizationLegality::Reductions
from DenseMap to MapVector The iteration order of LoopVectorizationLegality::Reductions matters for the final code generation, so we better use MapVector instead of DenseMap for it to remove the nondeterminacy. reduction-order.ll in the patch is an example reduced from the case we saw. In the output of opt command, the order of the select instructions in the vector.body block keeps changing from run to run currently. Differential Revision: https://reviews.llvm.org/D73490
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions