turns out, demotion and invokes and critical edges don't mix

llvm-svn: 24487
This commit is contained in:
Andrew Lenharth 2005-11-22 21:45:19 +00:00
parent d6a0308470
commit 71b09bbb07
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,10 @@ namespace {
struct RegToMem : public FunctionPass {
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequiredID(BreakCriticalEdgesID);
}
bool valueEscapes(Instruction* i) {
BasicBlock* bb = i->getParent();
for(Value::use_iterator ii = i->use_begin(), ie = i->use_end();