Lines Matching defs:EarlyCSE
1 //===- EarlyCSE.cpp - Simple and fast CSE pass ----------------------------===//
14 #include "llvm/Transforms/Scalar/EarlyCSE.h"
78 cl::desc("Enable imprecision in EarlyCSE in pathological cases, in exchange "
450 // In the context of the EarlyCSE pass, however, such cases never reach
628 // EarlyCSE implementation
640 class EarlyCSE {
731 /// Set up the EarlyCSE runner for a particular function.
732 EarlyCSE(const DataLayout &DL, const TargetLibraryInfo &TLI,
1131 bool EarlyCSE::isSameMemGeneration(unsigned EarlierGeneration,
1170 bool EarlyCSE::isOperatingOnInvariantMemAt(Instruction *I, unsigned GenAt) {
1191 bool EarlyCSE::handleBranchCondition(Instruction *CondInst,
1224 LLVM_DEBUG(dbgs() << "EarlyCSE CVP: Add conditional value for '"
1249 Value *EarlyCSE::getMatchingValue(LoadValue &InVal, ParseMemoryInst &MemInst,
1312 bool EarlyCSE::overridingStores(const ParseMemoryInst &Earlier,
1346 bool EarlyCSE::processNode(DomTreeNode *Node) {
1385 LLVM_DEBUG(dbgs() << "EarlyCSE DCE: " << Inst << '\n');
1407 LLVM_DEBUG(dbgs() << "EarlyCSE considering assumption: " << Inst
1411 LLVM_DEBUG(dbgs() << "EarlyCSE skipping assumption: " << Inst << '\n');
1418 LLVM_DEBUG(dbgs() << "EarlyCSE skipping noalias intrinsic: " << Inst
1425 LLVM_DEBUG(dbgs() << "EarlyCSE skipping sideeffect: " << Inst << '\n');
1431 LLVM_DEBUG(dbgs() << "EarlyCSE skipping pseudoprobe: " << Inst << '\n');
1470 << "EarlyCSE removing guard: " << Inst << '\n');
1496 LLVM_DEBUG(dbgs() << "EarlyCSE Simplify: " << Inst << " to: " << *V
1531 LLVM_DEBUG(dbgs() << "EarlyCSE CSE: " << Inst << " to: " << *V
1582 LLVM_DEBUG(dbgs() << "EarlyCSE CSE LOAD: " << Inst
1629 LLVM_DEBUG(dbgs() << "EarlyCSE CSE CALL: " << Inst
1658 LLVM_DEBUG(dbgs() << "EarlyCSE CSE GEP: " << Inst << " to: " << *V
1704 LLVM_DEBUG(dbgs() << "EarlyCSE DSE (writeback): " << Inst << '\n');
1731 LLVM_DEBUG(dbgs() << "EarlyCSE DEAD STORE: " << *LastStore
1776 bool EarlyCSE::run() {
1792 assert(!CurrentGeneration && "Create a new EarlyCSE instance to rerun it.");
1836 EarlyCSE CSE(F.getDataLayout(), TLI, TTI, DT, AC, MSSA);
1890 EarlyCSE CSE(F.getDataLayout(), TLI, TTI, DT, AC, MSSA);