aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2019-02-19 22:00:01 +0000
committerDavid Shah <dave@ds0.me>2019-03-22 10:31:54 +0000
commit589b267a93a92093a442cba9d1169c13e3f0a7c6 (patch)
treeed5d333f363a4a4e392cd614fa0c9fcc108b573b
parent8e4e03d98096604c11614bcb5bf89ba995ea5251 (diff)
downloadnextpnr-589b267a93a92093a442cba9d1169c13e3f0a7c6.tar.gz
nextpnr-589b267a93a92093a442cba9d1169c13e3f0a7c6.tar.bz2
nextpnr-589b267a93a92093a442cba9d1169c13e3f0a7c6.zip
HeAP: Fix regression
Signed-off-by: David Shah <davey1576@gmail.com>
-rw-r--r--common/placer_math.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/placer_math.c b/common/placer_math.c
index 1aa74a9d..b36a9ec5 100644
--- a/common/placer_math.c
+++ b/common/placer_math.c
@@ -38,6 +38,8 @@ void taucif_finalise_matrix(struct taucif_system *sys) {
}
int taucif_solve_system(struct taucif_system *sys, double *x, double *rhs) {
+ if (sys->mat->n <= 2)
+ return 0;
// FIXME: preconditioner, droptol??
taucs_ccs_matrix* precond_mat = taucs_ccs_factor_llt(sys->mat, 1e-2, 0);
if (precond_mat == NULL)