summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-03-11 16:54:07 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-03-11 16:54:07 +0000
commitac216fd9d5ef20eb464ac7bc1d606f7771a216e3 (patch)
treee0959154e0e9fdc7179d6ac45c61cb59c18a4d1a /llvm/lib/CodeGen/MachineScheduler.cpp
parent7862097a45cbeb4fcd05c3b27cf564533e57a4b6 (diff)
downloadbcm5719-llvm-ac216fd9d5ef20eb464ac7bc1d606f7771a216e3.tar.gz
bcm5719-llvm-ac216fd9d5ef20eb464ac7bc1d606f7771a216e3.zip
[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. llvm-svn: 263255
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineScheduler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineScheduler.cpp b/llvm/lib/CodeGen/MachineScheduler.cpp
index 7547ae3342b..18933a9c2b1 100644
--- a/llvm/lib/CodeGen/MachineScheduler.cpp
+++ b/llvm/lib/CodeGen/MachineScheduler.cpp
@@ -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 {
OpenPOWER on IntegriCloud