mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-02-23 23:59:38 +00:00
Implement some simple IR optimizations (get/set eliminiation and DCE)
This commit is contained in:
21
src/ir_opt/verification_pass.cpp
Normal file
21
src/ir_opt/verification_pass.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
/* This file is part of the dynarmic project.
|
||||
* Copyright (c) 2016 MerryMage
|
||||
* This software may be used and distributed according to the terms of the GNU
|
||||
* General Public License version 2 or any later version.
|
||||
*/
|
||||
|
||||
#include "common/assert.h"
|
||||
#include "frontend/ir/ir.h"
|
||||
#include "ir_opt/passes.h"
|
||||
|
||||
namespace Dynarmic {
|
||||
namespace Optimization {
|
||||
|
||||
void VerificationPass(const IR::Block& block) {
|
||||
for (const auto& inst : block.instructions) {
|
||||
inst->AssertValid();
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace Optimization
|
||||
} // namespace Dynarmic
|
||||
Reference in New Issue
Block a user