diff options
| author | Haohai Wen <haohai.wen@intel.com> | 2022-11-04 10:15:11 +0800 |
|---|---|---|
| committer | Haohai Wen <haohai.wen@intel.com> | 2022-11-04 11:15:18 +0800 |
| commit | e419620fc2f55cbc2decd468778376ec08d0190d (patch) | |
| tree | f8c8b9413c944c9949189e7c4e41f8c6fabc6832 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
| parent | 8cca7f3bf741287eb21ce273106244349a03345a (diff) | |
[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
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index b9ffb8a8318f..cf2b32c74eb5 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -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; |
