LLVM: lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp File Reference (original) (raw)

Go to the source code of this file.

Functions
INITIALIZE_PASS_BEGIN (SeparateConstOffsetFromGEPLegacyPass, "separate-const-offset-from-gep", "Split GEPs to a variadic base and a constant offset for better CSE", false, false) INITIALIZE_PASS_END(SeparateConstOffsetFromGEPLegacyPass
static bool allowsPreservingNUW (const User *U)
A helper function to check if reassociating through an entry in the user chain would invalidate the GEP's nuw flag.
Variables
static cl::opt< bool > DisableSeparateConstOffsetFromGEP ("disable-separate-const-offset-from-gep", cl::init(false), cl::desc("Do not separate the constant offset from a GEP instruction"), cl::Hidden)
static cl::opt< bool > VerifyNoDeadCode ("reassociate-geps-verify-no-dead-code", cl::init(false), cl::desc("Verify this pass produces no dead code"), cl::Hidden)
separate const offset from gep
separate const offset from Split GEPs to a variadic base and a constant offset for better CSE
separate const offset from Split GEPs to a variadic base and a constant offset for better false

allowsPreservingNUW()

INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( SeparateConstOffsetFromGEPLegacyPass ,
"separate-const-offset-from-gep" ,
"Split GEPs to a variadic base and a constant offset for better CSE" ,
false ,
false )

CSE

separate const offset from Split GEPs to a variadic base and a constant offset for better CSE

DisableSeparateConstOffsetFromGEP

cl::opt< bool > DisableSeparateConstOffsetFromGEP("disable-separate-const-offset-from-gep", cl::init(false), cl::desc("Do not separate the constant offset from a GEP instruction"), cl::Hidden) ( "disable-separate-const-offset-from-gep" , cl::init(false) , cl::desc("Do not separate the constant offset from a GEP instruction") , cl::Hidden ) static

false

separate const offset from Split GEPs to a variadic base and a constant offset for better false

gep

separate const offset from gep

VerifyNoDeadCode

cl::opt< bool > VerifyNoDeadCode("reassociate-geps-verify-no-dead-code", cl::init(false), cl::desc("Verify this pass produces no dead code"), cl::Hidden) ( "reassociate-geps-verify-no-dead-code" , cl::init(false) , cl::desc("Verify this pass produces no dead code") , cl::Hidden ) static