llvm-6502/lib
Evan Cheng 393e277ecd Fix PR5024 with a big hammer: disable the double-def assertion in the scavenger.
LiveVariables add implicit kills to correctly track partial register kills. This works well enough and is fairly accurate. But coalescer can make it impossible to maintain these markers. e.g.

        BL <ga:sss1>, %R0<kill,undef>, %S0<kill>, %R0<imp-def>, %R1<imp-def,dead>, %R2<imp-def,dead>, %R3<imp-def,dead>, %R12<imp-def,dead>, %LR<imp-def,dead>, %D0<imp-def>, ...
...
	%reg1031<def> = FLDS <cp#1>, 0, 14, %reg0, Mem:LD4[ConstantPool]
...
   	%S0<def> = FCPYS %reg1031<kill>, 14, %reg0, %D0<imp-use,kill>

When reg1031 and S0 are coalesced, the copy (FCPYS) will be eliminated the the implicit-kill of D0 is lost. In this case it's possible to move the marker to the FLDS. But in many cases, this is not possible. Suppose

	%reg1031<def> = FOO <cp#1>, %D0<imp-def>
...
   	%S0<def> = FCPYS %reg1031<kill>, 14, %reg0, %D0<imp-use,kill>

When FCPYS goes away, the definition of S0 is the "FOO" instruction. However, transferring the D0 implicit-kill to FOO doesn't work since it is the def of D0 itself. We need to fix this in another time by introducing a "kill" pseudo instruction to track liveness.

Disabling the assertion is not ideal, but machine verifier is doing that job now. It's important to know double-def is not a miscomputation since it means a register should be free but it's not tracked as free. It's a performance issue instead.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82677 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-24 02:27:09 +00:00
..
Analysis No need to verify that malloc's return type is i8*. 2009-09-22 18:50:03 +00:00
Archive
AsmParser
Bitcode
CodeGen Fix PR5024 with a big hammer: disable the double-def assertion in the scavenger. 2009-09-24 02:27:09 +00:00
CompilerDriver
Debugger
ExecutionEngine Fix a struct/class mismatch. 2009-09-23 11:48:57 +00:00
Linker
MC
Support Roll back r82348, which introduced an infinite loop in ParseCStringVector() that 2009-09-24 01:14:07 +00:00
System
Target Checkpoint NEON scheduling itineraries. 2009-09-23 21:38:08 +00:00
Transforms A minor improvment in accuracy to inline cost 2009-09-23 22:05:24 +00:00
VMCore Delete attached metadata when an instruction is deleted. 2009-09-23 20:33:51 +00:00
Makefile