LLVM 20.0.0git
|
Helper to remove instructions inserted during SCEV expansion, unless they are marked as used. More...
#include "llvm/Transforms/Utils/ScalarEvolutionExpander.h"
Public Member Functions | |
SCEVExpanderCleaner (SCEVExpander &Expander) | |
~SCEVExpanderCleaner () | |
void | markResultUsed () |
Indicate that the result of the expansion is used. | |
void | cleanup () |
Helper to remove instructions inserted during SCEV expansion, unless they are marked as used.
Definition at line 541 of file ScalarEvolutionExpander.h.
|
inline |
Definition at line 549 of file ScalarEvolutionExpander.h.
|
inline |
Definition at line 552 of file ScalarEvolutionExpander.h.
References cleanup().
void SCEVExpanderCleaner::cleanup | ( | ) |
Definition at line 2372 of file ScalarEvolutionExpander.cpp.
References llvm::all_of(), assert(), llvm::SCEVExpander::clear(), llvm::PoisonValue::get(), llvm::SCEVExpander::getAllInsertedInstructions(), I, and llvm::reverse().
Referenced by ~SCEVExpanderCleaner().
|
inline |
Indicate that the result of the expansion is used.
Definition at line 555 of file ScalarEvolutionExpander.h.