mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Allow readonly functions to unwind exceptions. Teach
the optimizers about this. For example, a readonly function with no uses cannot be removed unless it is also marked nounwind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71071 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1148,7 +1148,7 @@ bool LoopIndexSplit::cleanBlock(BasicBlock *BB) {
|
||||
|| isa<DbgInfoIntrinsic>(I))
|
||||
continue;
|
||||
|
||||
if (I->mayWriteToMemory())
|
||||
if (I->mayHaveSideEffects())
|
||||
return false;
|
||||
|
||||
// I is used only inside this block then it is OK.
|
||||
|
||||
Reference in New Issue
Block a user