Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Transforms/Scalar/EarlyCSE.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | DEBUG_COUNTER(CSECounter, "early-cse", | ||||
"Controls which instructions are removed"); | "Controls which instructions are removed"); | ||||
static cl::opt<unsigned> EarlyCSEMssaOptCap( | static cl::opt<unsigned> EarlyCSEMssaOptCap( | ||||
"earlycse-mssa-optimization-cap", cl::init(500), cl::Hidden, | "earlycse-mssa-optimization-cap", cl::init(500), cl::Hidden, | ||||
cl::desc("Enable imprecision in EarlyCSE in pathological cases, in exchange " | cl::desc("Enable imprecision in EarlyCSE in pathological cases, in exchange " | ||||
"for faster compile. Caps the MemorySSA clobbering calls.")); | "for faster compile. Caps the MemorySSA clobbering calls.")); | ||||
static cl::opt<bool> EarlyCSEDebugHash( | static cl::opt<bool> EarlyCSEDebugHash( | ||||
"earlycse-debug-hash", cl::init(false), cl::Hidden, | "earlycse-debug-hash", | ||||
cl::desc("Perform extra assertion checking to verify that SimpleValue's hash " | #ifdef EXPENSIVE_CHECKS | ||||
cl::init(true), | |||||
#else | |||||
cl::init(false), | |||||
#endif | |||||
cl::Hidden, | |||||
cl::desc( | |||||
"Perform extra assertion checking to verify that SimpleValue's hash " | |||||
"function is well-behaved w.r.t. its isEqual predicate")); | "function is well-behaved w.r.t. its isEqual predicate")); | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// SimpleValue | // SimpleValue | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
namespace { | namespace { | ||||
/// Struct representing the available values in the scoped hash table. | /// Struct representing the available values in the scoped hash table. | ||||
▲ Show 20 Lines • Show All 1,414 Lines • Show Last 20 Lines |