Repair a verified behavior in llvm/circt.
Repair a verified behavior in llvm/circt.: a task in OriGent-SFT-Data (Harbor dataset). The Pipeline dialect's stage-separator-to-stage lowering pass (the pass that runs on pipeline.pipeline operations and lowers pipeline.stagesep.reg stage separators into explicit pipeline.stage operations)…
The task
The Pipeline dialect's stage-separator-to-stage lowering pass (the pass that runs on `pipeline.pipeline` operations and lowers `pipeline.stagesep.reg` stage separators into explicit `pipeline.stage` operations) crashes when a pipeline stage references a constant defined in the pipeline body.
Part of henryen/OriGent-SFT-Data.