Browse Source

Extend copy propagation on all simple instructions.

pull/734/head
Siegfried Pammer 9 years ago
parent
commit
2715c47f19
  1. 3
      ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs

3
ICSharpCode.Decompiler/IL/Transforms/CopyPropagation.cs

@ -94,7 +94,8 @@ namespace ICSharpCode.Decompiler.IL @@ -94,7 +94,8 @@ namespace ICSharpCode.Decompiler.IL
return false;
}
default:
return false;
// All instructions without special behavior that target a stack-variable can be copied.
return value.DirectFlags == InstructionFlags.None && target.Kind == VariableKind.StackSlot;
}
}
}

Loading…
Cancel
Save