Dear All, Does the setPreservesCFG() call for passes indicate that the CFG in the local function does not change or that the global CFG does not change? In other words, can a pass call setPreservesCFG() if it adds call instructions to a function? Thanks in advance. -- John T.
On Feb 23, 2009, at 1:23 PM, John Criswell wrote:> Dear All, > > Does the setPreservesCFG() call for passes indicate that the CFG in > the > local function does not change or that the global CFG does not change?The CFG in this context is just the per-function CFG. "setPreservesCFG" can only be used meaninfully for FunctionPasses.> In other words, can a pass call setPreservesCFG() if it adds call > instructions to a function?Adding a call does not modify the per-function CFG. Adding an invoke does. -Chris
Reasonably Related Threads
- [LLVMdev] setPreservesCFG
- [LLVMdev] InstructionCombining.cpp inconsistency in whether it modifies the CFG?
- [LLVMdev] InstructionCombining.cpp inconsistency in whether it modifies the CFG?
- [LLVMdev] Patch for transform dependencies
- Preservation of CallGraph (by BasicBlockPass, FunctionPass)