[project @ 2005-01-13 12:44:08 by simonmar]
authorsimonmar <unknown>
Thu, 13 Jan 2005 12:44:08 +0000 (12:44 +0000)
committersimonmar <unknown>
Thu, 13 Jan 2005 12:44:08 +0000 (12:44 +0000)
commitf25cb619dbfb74b32555aa3c9e4cd8264d59acdd
treed145a708676afaa06348c8dadee83376aa93ae29
parentb48ee25606f9886476d1502a4cb50c6336a01985
[project @ 2005-01-13 12:44:08 by simonmar]
Fix bug(s) in the register allocator: if a virtual register is both in
memory and in a register (perhaps because it was recently loaded from
a spill slot), and the current instruction writes it, we're supposed
to invalidate the memory slot.  That wasn't happening properly.

This fixes two problems noticed when using -prof -fasm: 10queens in the
testsuite gives the wrong answer, and nofib/spectral/hartel/ida fails
with a 'head []' message.  Interesting bug to track down!
ghc/compiler/nativeGen/RegisterAlloc.hs