[CodeGenPrep] Change ValueToSExts from DeseMap to MapVector
mergeSExts iterates throught ValueToSExts. Using DenseMap result in unstable optimization path so that output IR may vary even if the input IR is same. Reviewed By: wxiao3 Differential Revision: https://reviews.llvm.org/D137234
This commit is contained in:
parent
8cca7f3bf7
commit
e419620fc2
@ -287,7 +287,7 @@ using SetOfInstrs = SmallPtrSet<Instruction *, 16>;
|
||||
using TypeIsSExt = PointerIntPair<Type *, 2, ExtType>;
|
||||
using InstrToOrigTy = DenseMap<Instruction *, TypeIsSExt>;
|
||||
using SExts = SmallVector<Instruction *, 16>;
|
||||
using ValueToSExts = DenseMap<Value *, SExts>;
|
||||
using ValueToSExts = MapVector<Value *, SExts>;
|
||||
|
||||
class TypePromotionTransaction;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user