mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-23 19:59:57 +00:00
[misched] Fix a truncation issue from r263021.
The truncation was causing the sorting algorithm to behave oddly when comparing positive and negative offsets. Fortunately, this doesn't currently happen in practice and was exposed by a WIP. Thus, I can't test this change now, but the follow on patch will. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263255 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
913bb512ce
commit
8c362cf8d4
@ -1362,7 +1362,7 @@ class LoadClusterMutation : public ScheduleDAGMutation {
|
||||
SUnit *SU;
|
||||
unsigned BaseReg;
|
||||
int64_t Offset;
|
||||
LoadInfo(SUnit *su, unsigned reg, unsigned ofs)
|
||||
LoadInfo(SUnit *su, unsigned reg, int64_t ofs)
|
||||
: SU(su), BaseReg(reg), Offset(ofs) {}
|
||||
|
||||
bool operator<(const LoadInfo &RHS) const {
|
||||
|
Loading…
Reference in New Issue
Block a user