Commit daa009a2 authored by Yang's avatar Yang

fix a bug

parent 50e8404f
......@@ -65,7 +65,6 @@ int main(int argc, char** argv) {
PassManager PM(m);
// optimization
if (config.mem2reg) {
PM.add_pass<DeadCode>(true);
PM.add_pass<Mem2Reg>();
PM.add_pass<DeadCode>(false);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment