================
@@ -33,6 +33,141 @@ struct HoistAllocasPass : public
impl::HoistAllocasBase<HoistAllocasPass> {
void runOnOperation() override;
};
+static bool isOpInLoop(mlir::Operation *op) {
+ return op->getParentOfType<cir::LoopOpInterface>();
----------------
andykaylor wrote:
Do we have anything that enforces the fact that the HoistAllocas pass must be
run before the FlattenCFG pass? @ftynse [gave a
talk](https://www.youtube.com/watch?v=Esw84hH1Ed0) at this year's LLVM Dev
Meeting about an idea for "normal forms" that would be very useful for this
(basically, it would be a mechanism to say "I need the IR to be in this form to
run this pass"), but I think at the time it was only out-of-tree work he had
done. I'm not sure if any of that is in place yet.
https://github.com/llvm/llvm-project/pull/175037
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits