llvm-project
f5e2f29c - [flang] Added ConditionallySpeculatable and Pure for some FIR ops. (#174013)

Commit
19 days ago
[flang] Added ConditionallySpeculatable and Pure for some FIR ops. (#174013) This patch implements `ConditionallySpeculatable` interface for some FIR operations (`embox`, `rebox`, `box_addr`, `box_dims` and `convert`). It also adds `Pure` trait for `fir.shape`, `fir.shapeshift`, `fir.shift` and `fir.slice`. I could have split this into multiple patches, but the changes are better tested together on real apps, and the amount of affected code is small. There are more `NoMemoryEffect` operations for which I am planning to do the same in future PRs.
Author
Parents
Loading