[bugpoint] Implement replacing a single instruction by several ones;

This allows replacing a function that has N results with N instructions
with the same result type. It also narrows down typing, so that
instructions creating F32/F64 values are replaced with a constant of the
correct type.
This commit is contained in:
Benjamin Bouvier
2019-10-11 18:59:19 +02:00
parent 0340ddbb65
commit 6b7304cb14
2 changed files with 88 additions and 33 deletions

View File

@@ -300,8 +300,7 @@ ebb0(v0: i64, v1: i64, v2: i64):
v241 -> v1
v256 -> v1
v262 -> v1
v3 = stack_addr.i64 ss0
v4 = load.i64 aligned v2
v3, v4 = x86_sdivmodx v0, v1, v2
store aligned v4, v3
v5 = load.i64 aligned v2+8
store aligned v5, v3+8