LLVM 18.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 506 of file ScalarEvolutionExpander.h.
|
inline |
Definition at line 514 of file ScalarEvolutionExpander.h.
|
inline |
Definition at line 517 of file ScalarEvolutionExpander.h.
References cleanup().
void SCEVExpanderCleaner::cleanup | ( | ) |
Definition at line 2314 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 520 of file ScalarEvolutionExpander.h.
Referenced by ReduceLoopStrength().