[JIT] Run the SimplificationPass/ConstantPropagationPass until there are no changes.
This commit is contained in:
@@ -10,19 +10,19 @@
|
||||
#ifndef XENIA_CPU_COMPILER_PASSES_CONSTANT_PROPAGATION_PASS_H_
|
||||
#define XENIA_CPU_COMPILER_PASSES_CONSTANT_PROPAGATION_PASS_H_
|
||||
|
||||
#include "xenia/cpu/compiler/compiler_pass.h"
|
||||
#include "xenia/cpu/compiler/passes/conditional_group_subpass.h"
|
||||
|
||||
namespace xe {
|
||||
namespace cpu {
|
||||
namespace compiler {
|
||||
namespace passes {
|
||||
|
||||
class ConstantPropagationPass : public CompilerPass {
|
||||
class ConstantPropagationPass : public ConditionalGroupSubpass {
|
||||
public:
|
||||
ConstantPropagationPass();
|
||||
~ConstantPropagationPass() override;
|
||||
|
||||
bool Run(hir::HIRBuilder* builder) override;
|
||||
bool Run(hir::HIRBuilder* builder, bool& result) override;
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user