patch applied (ghc): Tell the NCG that XOR foo, foo does *not* read foo

Wolfgang Thaller <[email protected]>
Newsgroups gmane.comp.lang.haskell.cvs.all
Message-ID <20061207132952.GA7502__8081.40995582125$1165498205$gmane$org@cvs.haskell.org>
Thu Dec  7 05:17:21 PST 2006  [email protected]
  * Tell the NCG that XOR foo, foo does *not* read foo
  
  On x86[-64], MachCodeGen uses the old XOR trick to zero a register.
  This patch makes regUsage not list the register as an input in this
  case.
  Listing the register as an input for the instruction could make it 
  appear like an unitialised value, which is bad because unitialised
  values can cause the register allocator to panic (at least in the
  presence of a loop).
  

    M ./compiler/nativeGen/RegAllocInfo.hs +2
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.