mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
[PBQP] Fix transposed worst row/column check in handleAdd/RemoveNode in the PBQP
allocator. Patch by Jonas Paulsson. Thanks Jonas! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -248,7 +248,7 @@ public:
|
||||
void setReductionState(ReductionState RS) { this->RS = RS; }
|
||||
|
||||
void handleAddEdge(const MatrixMetadata& MD, bool Transpose) {
|
||||
DeniedOpts += Transpose ? MD.getWorstCol() : MD.getWorstRow();
|
||||
DeniedOpts += Transpose ? MD.getWorstRow() : MD.getWorstCol();
|
||||
const bool* UnsafeOpts =
|
||||
Transpose ? MD.getUnsafeCols() : MD.getUnsafeRows();
|
||||
for (unsigned i = 0; i < NumOpts; ++i)
|
||||
@@ -256,7 +256,7 @@ public:
|
||||
}
|
||||
|
||||
void handleRemoveEdge(const MatrixMetadata& MD, bool Transpose) {
|
||||
DeniedOpts -= Transpose ? MD.getWorstCol() : MD.getWorstRow();
|
||||
DeniedOpts -= Transpose ? MD.getWorstRow() : MD.getWorstCol();
|
||||
const bool* UnsafeOpts =
|
||||
Transpose ? MD.getUnsafeCols() : MD.getUnsafeRows();
|
||||
for (unsigned i = 0; i < NumOpts; ++i)
|
||||
|
Reference in New Issue
Block a user