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 548 of file ScalarEvolutionExpander.h.
|
inline |
Definition at line 556 of file ScalarEvolutionExpander.h.
|
inline |
Definition at line 559 of file ScalarEvolutionExpander.h.
References cleanup().
void SCEVExpanderCleaner::cleanup | ( | ) |
Definition at line 2381 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 562 of file ScalarEvolutionExpander.h.