mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
turns out, demotion and invokes and critical edges don't mix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24487 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4052f02cdb
commit
7045f6c56e
@ -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
Block a user