Implement trivial inlining
Revive pattern merging