aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h
diff options
context:
space:
mode:
authorArda Unal <3157490+ardaunal@users.noreply.github.com>2025-02-11 15:48:57 -0800
committerGitHub <noreply@github.com>2025-02-11 15:48:57 -0800
commit36d8e7056ef08d0f51e5b1e928274a8ca7dadeb5 (patch)
tree578cbcb74b1018678d87aaddf65ec52b70c27e59 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h
parenta6a5507e368c8a69f5ed1796f3eeb3a5e9acd119 (diff)
downloadllvm-36d8e7056ef08d0f51e5b1e928274a8ca7dadeb5.zip
llvm-36d8e7056ef08d0f51e5b1e928274a8ca7dadeb5.tar.gz
llvm-36d8e7056ef08d0f51e5b1e928274a8ca7dadeb5.tar.bz2
[mlir] Enable LICM for ops with only read side effects in scf.for (#120302)
Enable ops with only read side effects in scf.for to be hoisted with a scf.if guard that checks against the trip count This patch takes a step towards a less conservative LICM in MLIR as discussed in the following discourse thread: [Speculative LICM?](https://discourse.llvm.org/t/speculative-licm/80977) This patch in particular does the following: 1. Relaxes the original constraint for hoisting that only hoists ops without any side effects. This patch also allows the ops with only read side effects to be hoisted into an scf.if guard only if every op in the loop or its nested regions is side-effect free or has only read side effects. This scf.if guard wraps the original scf.for and checks for **trip_count > 0**. 2. To support this, two new interface methods are added to **LoopLikeInterface**: _wrapInTripCountCheck_ and _unwrapTripCountCheck_. Implementation starts with wrapping the scf.for loop into scf.if guard using _wrapInTripCountCheck_ and if there is no op hoisted into the this guard after we are done processing the worklist, it unwraps the guard by calling _unwrapTripCountCheck_.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions