mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-16 11:24:39 +00:00
Expose expression reassociation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2557 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -42,7 +42,7 @@ enum Opts {
|
|||||||
print, printm, verify,
|
print, printm, verify,
|
||||||
|
|
||||||
// More powerful optimizations
|
// More powerful optimizations
|
||||||
indvars, instcombine, sccp, adce, raise, mem2reg,
|
indvars, instcombine, sccp, adce, raise, reassociate, mem2reg,
|
||||||
|
|
||||||
// Instrumentation
|
// Instrumentation
|
||||||
trace, tracem, paths,
|
trace, tracem, paths,
|
||||||
@@ -80,6 +80,7 @@ struct {
|
|||||||
{ sccp , createSCCPPass },
|
{ sccp , createSCCPPass },
|
||||||
{ adce , createAggressiveDCEPass },
|
{ adce , createAggressiveDCEPass },
|
||||||
{ raise , createRaisePointerReferencesPass },
|
{ raise , createRaisePointerReferencesPass },
|
||||||
|
{ reassociate, createReassociatePass },
|
||||||
{ mem2reg , createPromoteMemoryToRegister },
|
{ mem2reg , createPromoteMemoryToRegister },
|
||||||
{ lowerrefs, createDecomposeMultiDimRefsPass },
|
{ lowerrefs, createDecomposeMultiDimRefsPass },
|
||||||
|
|
||||||
@@ -126,6 +127,7 @@ cl::EnumList<enum Opts> OptimizationList(cl::NoFlags,
|
|||||||
clEnumVal(instcombine, "Combine redundant instructions"),
|
clEnumVal(instcombine, "Combine redundant instructions"),
|
||||||
clEnumVal(sccp , "Sparse Conditional Constant Propogation"),
|
clEnumVal(sccp , "Sparse Conditional Constant Propogation"),
|
||||||
clEnumVal(adce , "Aggressive DCE"),
|
clEnumVal(adce , "Aggressive DCE"),
|
||||||
|
clEnumVal(reassociate, "Reassociate expressions"),
|
||||||
clEnumVal(mem2reg , "Promote alloca locations to registers"),
|
clEnumVal(mem2reg , "Promote alloca locations to registers"),
|
||||||
|
|
||||||
clEnumVal(internalize, "Mark all fn's internal except for main"),
|
clEnumVal(internalize, "Mark all fn's internal except for main"),
|
||||||
|
Reference in New Issue
Block a user