Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM with nits.
lib/CodeGen/UnreachableBlockElim.cpp | ||
---|---|---|
44 ↗ | (On Diff #63169) | The body of runOnFunction() can probably be inlined here. |
102 ↗ | (On Diff #63169) | AnalysisManager<Function> |
102 ↗ | (On Diff #63169) | Maybe AnalysisManager<Function> ? |
test/CodeGen/X86/unreachableblockelim.ll | ||
1 ↗ | (On Diff #63169) | So this pass wasn't tested before? |
Comment Actions
LGTM.
btw, I don't think we have a strong precedent for AnalysisManager<Function> vs FunctionAnalysisManager so either is fine.
Comment Actions
Thanks for the review. Addressed davide's comments.
lib/CodeGen/UnreachableBlockElim.cpp | ||
---|---|---|
44 ↗ | (On Diff #63169) | Right, fixed. |
102 ↗ | (On Diff #63169) | Sean says no preference so I leave it as it is. |
test/CodeGen/X86/unreachableblockelim.ll | ||
1 ↗ | (On Diff #63169) | It was tested but only by llc instead of opt. We cannot test the new pass using llc. |