Similar Items: FlowCompile: An Optimizing Compiler for Structured LLM Workflows