mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Fix non-deterministic behavior.
We use CSEBlocks to initialize a worklist: SmallVector<BasicBlock *, 8> CSEWorkList(CSEBlocks.begin(), CSEBlocks.end()); so it must have a deterministic order. llvm-svn: 196520
This commit is contained in:
parent
e62b076d5b
commit
2ad993fb14
@ -521,7 +521,7 @@ private:
|
||||
/// Holds all of the instructions that we gathered.
|
||||
SetVector<Instruction *> GatherSeq;
|
||||
/// A list of blocks that we are going to CSE.
|
||||
SmallSet<BasicBlock *, 8> CSEBlocks;
|
||||
SetVector<BasicBlock *> CSEBlocks;
|
||||
|
||||
/// Numbers instructions in different blocks.
|
||||
DenseMap<BasicBlock *, BlockNumbering> BlocksNumbers;
|
||||
|
Loading…
Reference in New Issue
Block a user