llvm/lib/Transforms/Vectorize
Charlie Turner c8dc70b584 [LoopVectorize] Use MapVector rather than DenseMap for MinBWs.
The order in which instructions are truncated in truncateToMinimalBitwidths
effects code generation. Switch to a map with a determinisic order, since the
iteration order over a DenseMap is not defined.

This code is not hot, so the difference in container performance isn't
interesting.

Many thanks to David Blaikie for making me aware of MapVector!

Fixes PR25490.

Differential Revision: http://reviews.llvm.org/D14981



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254179 91177308-0d34-0410-b5e6-96231b3b80d8
2015-11-26 20:39:51 +00:00
..
BBVectorize.cpp Vectorize: Remove implicit ilist iterator conversions, NFC 2015-10-19 22:06:09 +00:00
CMakeLists.txt
LLVMBuild.txt
LoopVectorize.cpp [LoopVectorize] Use MapVector rather than DenseMap for MinBWs. 2015-11-26 20:39:51 +00:00
Makefile
SLPVectorizer.cpp [SLP] Enable -slp-vectorize-hor by default. 2015-11-11 15:03:46 +00:00
Vectorize.cpp