Always create live ranges for dead EBB arguments.

The live value tracker expects them to be there.

We may eventually delete dead arguments from internal EBBs, but at least
the entry block needs to be able to handle dead function arguments.
This commit is contained in:
Jakob Stoklund Olesen
2017-05-11 11:42:44 -07:00
parent 94944d2057
commit d1390006b1
2 changed files with 14 additions and 0 deletions

View File

@@ -10,3 +10,10 @@ ebb0(v1: i32, v2: i32):
; sameln: iadd
return
}
; Function with a dead argument.
function dead_arg(i32, i32) -> i32{
ebb0(v1: i32, v2: i32):
; check: return $v1
return v1
}