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 "
451 // In the context of the EarlyCSE pass, however, such cases never reach
629 // EarlyCSE implementation
641 class EarlyCSE {
732 /// Set up the EarlyCSE runner for a particular function.
733 EarlyCSE(const DataLayout &DL, const TargetLibraryInfo &TLI,
1125 bool EarlyCSE::isSameMemGeneration(unsigned EarlierGeneration,
1164 bool EarlyCSE::isOperatingOnInvariantMemAt(Instruction *I, unsigned GenAt) {
1185 bool EarlyCSE::handleBranchCondition(Instruction *CondInst,
1218 LLVM_DEBUG(dbgs() << "EarlyCSE CVP: Add conditional value for '"
1243 Value *EarlyCSE::getMatchingValue(LoadValue &InVal, ParseMemoryInst &MemInst,
1323 bool EarlyCSE::overridingStores(const ParseMemoryInst &Earlier,
1357 bool EarlyCSE::processNode(DomTreeNode *Node) {
1396 LLVM_DEBUG(dbgs() << "EarlyCSE DCE: " << Inst << '\n');
1418 LLVM_DEBUG(dbgs() << "EarlyCSE considering assumption: " << Inst
1422 LLVM_DEBUG(dbgs() << "EarlyCSE skipping assumption: " << Inst << '\n');
1429 LLVM_DEBUG(dbgs() << "EarlyCSE skipping noalias intrinsic: " << Inst
1436 LLVM_DEBUG(dbgs() << "EarlyCSE skipping sideeffect: " << Inst << '\n');
1442 LLVM_DEBUG(dbgs() << "EarlyCSE skipping pseudoprobe: " << Inst << '\n');
1481 << "EarlyCSE removing guard: " << Inst << '\n');
1507 LLVM_DEBUG(dbgs() << "EarlyCSE Simplify: " << Inst << " to: " << *V
1542 LLVM_DEBUG(dbgs() << "EarlyCSE CSE: " << Inst << " to: " << *V
1593 LLVM_DEBUG(dbgs() << "EarlyCSE CSE LOAD: " << Inst
1640 LLVM_DEBUG(dbgs() << "EarlyCSE CSE CALL: " << Inst
1670 LLVM_DEBUG(dbgs() << "EarlyCSE CSE GEP: " << Inst << " to: " << *V
1716 LLVM_DEBUG(dbgs() << "EarlyCSE DSE (writeback): " << Inst << '\n');
1743 LLVM_DEBUG(dbgs() << "EarlyCSE DEAD STORE: " << *LastStore
1788 bool EarlyCSE::run() {
1804 assert(!CurrentGeneration && "Create a new EarlyCSE instance to rerun it.");
1848 EarlyCSE CSE(F.getDataLayout(), TLI, TTI, DT, AC, MSSA);
1902 EarlyCSE CSE(F.getDataLayout(), TLI, TTI, DT, AC, MSSA);