mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
AMDGPU: Fixed indeterminate map iteration in SIPeepholeSDWA
Differential Revision: https://reviews.llvm.org/D70783 Change-Id: Ic26f915a4acb4c00ecefa9d09d7c24cec370ed06
This commit is contained in:
parent
52c5090d68
commit
40ace5d825
@ -26,6 +26,7 @@
|
|||||||
#include "SIRegisterInfo.h"
|
#include "SIRegisterInfo.h"
|
||||||
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
|
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
|
||||||
#include "Utils/AMDGPUBaseInfo.h"
|
#include "Utils/AMDGPUBaseInfo.h"
|
||||||
|
#include "llvm/ADT/MapVector.h"
|
||||||
#include "llvm/ADT/None.h"
|
#include "llvm/ADT/None.h"
|
||||||
#include "llvm/ADT/Optional.h"
|
#include "llvm/ADT/Optional.h"
|
||||||
#include "llvm/ADT/STLExtras.h"
|
#include "llvm/ADT/STLExtras.h"
|
||||||
@ -73,8 +74,8 @@ private:
|
|||||||
const SIRegisterInfo *TRI;
|
const SIRegisterInfo *TRI;
|
||||||
const SIInstrInfo *TII;
|
const SIInstrInfo *TII;
|
||||||
|
|
||||||
std::unordered_map<MachineInstr *, std::unique_ptr<SDWAOperand>> SDWAOperands;
|
MapVector<MachineInstr *, std::unique_ptr<SDWAOperand>> SDWAOperands;
|
||||||
std::unordered_map<MachineInstr *, SDWAOperandsVector> PotentialMatches;
|
MapVector<MachineInstr *, SDWAOperandsVector> PotentialMatches;
|
||||||
SmallVector<MachineInstr *, 8> ConvertedInstructions;
|
SmallVector<MachineInstr *, 8> ConvertedInstructions;
|
||||||
|
|
||||||
Optional<int64_t> foldToImm(const MachineOperand &Op) const;
|
Optional<int64_t> foldToImm(const MachineOperand &Op) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user