mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-01-16 08:33:37 +00:00
Re-added -Onoloophead option.
This commit is contained in:
parent
bb75c245a5
commit
2afd9bd3c0
@ -56,6 +56,10 @@ public class Compiler {
|
|||||||
this.enableLoopHeadConstant = true;
|
this.enableLoopHeadConstant = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void disableLoopHeadConstant() {
|
||||||
|
this.enableLoopHeadConstant = false;
|
||||||
|
}
|
||||||
|
|
||||||
void setTargetPlatform(TargetPlatform targetPlatform) {
|
void setTargetPlatform(TargetPlatform targetPlatform) {
|
||||||
program.setTargetPlatform(targetPlatform);
|
program.setTargetPlatform(targetPlatform);
|
||||||
}
|
}
|
||||||
|
@ -69,6 +69,9 @@ public class KickC implements Callable<Void> {
|
|||||||
@CommandLine.Option(names = {"-Oloophead"}, description = "Optimization Option. Enabled experimental loop-head constant pass which identifies loops where the condition is constant on the first iteration.")
|
@CommandLine.Option(names = {"-Oloophead"}, description = "Optimization Option. Enabled experimental loop-head constant pass which identifies loops where the condition is constant on the first iteration.")
|
||||||
private boolean optimizeLoopHeadConstant = false;
|
private boolean optimizeLoopHeadConstant = false;
|
||||||
|
|
||||||
|
@CommandLine.Option(names = {"-Onoloophead"}, description = "Optimization Option. Disabled experimental loop-head constant pass which identifies loops where the condition is constant on the first iteration.")
|
||||||
|
private boolean optimizeNoLoopHeadConstant = false;
|
||||||
|
|
||||||
@CommandLine.Option(names = {"-Ocache"}, description = "Optimization Option. Enables a fragment cache file.")
|
@CommandLine.Option(names = {"-Ocache"}, description = "Optimization Option. Enables a fragment cache file.")
|
||||||
private boolean optimizeFragmentCache = false;
|
private boolean optimizeFragmentCache = false;
|
||||||
|
|
||||||
@ -220,6 +223,8 @@ public class KickC implements Callable<Void> {
|
|||||||
|
|
||||||
if(optimizeLoopHeadConstant) {
|
if(optimizeLoopHeadConstant) {
|
||||||
compiler.enableLoopHeadConstant();
|
compiler.enableLoopHeadConstant();
|
||||||
|
} else if(optimizeNoLoopHeadConstant) {
|
||||||
|
compiler.disableLoopHeadConstant();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(linkScript!=null) {
|
if(linkScript!=null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user