clangir icon indicating copy to clipboard operation
clangir copied to clipboard

[CIR] [Lowering] Introduce HoistAllocas Pass

Open ChuanqiXu9 opened this issue 4 months ago • 1 comments

See https://github.com/llvm/clangir/issues/883 for details.

This implements the idea to implement a pass to hoist the allocas and then we can accept the reproducer.

I sent this as a draft since it may be too simple and there are a bunch of test failures due to mismatch. I'll try to fix them if we like this.

ChuanqiXu9 avatar Sep 26 '24 09:09 ChuanqiXu9