diff options
author | Mike Voorhees <mrvoorhe@users.noreply.github.com> | 2020-03-02 17:41:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 17:41:08 +0300 |
commit | 3ab050a1bab04b84e8544b32e2ff6da446b4a79a (patch) | |
tree | a45a7907748dc8c3a551f5d84b9de1697d25fe2a /test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs | |
parent | cd01694ab1406159dd8e3f0ab81624f5feec2414 (diff) |
Explicitly enable optimization during test (#974)
Explicitly enable `IPConstantPropagation` during the `UnreachableBlock` tests. This gives implementors of a linker executable the freedom to pick which optimizations are enabled by default while also ensuring that they can pass all tests.
This is consistent with other optimizations such as unreachable bodies, used attrs only, etc.
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs b/test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs index b4acde444..a28ac1929 100644 --- a/test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs +++ b/test/Mono.Linker.Tests.Cases/UnreachableBlock/MultiStageRemoval.cs @@ -5,6 +5,7 @@ namespace Mono.Linker.Tests.Cases.UnreachableBlock { [SetupCSharpCompilerToUse ("csc")] [SetupCompileArgument ("/optimize+")] + [SetupLinkerArgument ("--enable-opt", "ipconstantpropagation")] public class MultiStageRemoval { public static void Main() |