forked from OSchip/llvm-project
turns out, demotion and invokes and critical edges don't mix
llvm-svn: 24487
This commit is contained in:
parent
d6a0308470
commit
71b09bbb07
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue