llvm.org GIT mirror llvm / 88e1d95
Fix non-determinism issue in SLP The issue was introduced in r214638: + for (auto &BSIter : BlocksSchedules) { + scheduleBlock(BSIter.second.get()); + } Because BlocksSchedules is a DenseMap with BasicBlock* keys, blocks are scheduled in non-deterministic order, resulting in unpredictable IR. Patch by Daniel Reynaud! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225821 91177308-0d34-0410-b5e6-96231b3b80d8 Julien Lerouge 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
856856 };
857857
858858 /// Attaches the BlockScheduling structures to basic blocks.
859 DenseMap> BlocksSchedules;
859 MapVector> BlocksSchedules;
860860
861861 /// Performs the "real" scheduling. Done before vectorization is actually
862862 /// performed in a basic block.