<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/test/Transforms/StructurizeCFG, branch users/nico/python-2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[StructurizeCFG] Stop setting DebugLocs in flow blocks (#139088)</title>
<updated>2025-05-09T18:22:14+00:00</updated>
<author>
<name>Emma Pilkington</name>
<email>emma.pilkington95@gmail.com</email>
</author>
<published>2025-05-09T18:22:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7babf22461deb846827859de2e472a062815095b'/>
<id>7babf22461deb846827859de2e472a062815095b</id>
<content type='text'>
Flow blocks are generated code that don't really correspond to any
location in the source, so principally they should have empty DebugLocs.
Practically, setting these debug locs leads to redundant is_stmts being
generated after #108251, causing stepping test failures in the ROCm GDB
test suite.

Fixes SWDEV-502134</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Flow blocks are generated code that don't really correspond to any
location in the source, so principally they should have empty DebugLocs.
Practically, setting these debug locs leads to redundant is_stmts being
generated after #108251, causing stepping test failures in the ROCm GDB
test suite.

Fixes SWDEV-502134</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "[StructurizeCFG] Refactor insertConditions. NFC. (#115476)" (#136370)</title>
<updated>2025-04-19T12:04:48+00:00</updated>
<author>
<name>Shilei Tian</name>
<email>i@tianshilei.me</email>
</author>
<published>2025-04-19T12:04:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=fc55ad4ceb7dda17d4d7eb3d44ac3833ecda1a84'/>
<id>fc55ad4ceb7dda17d4d7eb3d44ac3833ecda1a84</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>StructurizeCFG: Use poison instead of undef (#130459)</title>
<updated>2025-03-10T15:29:15+00:00</updated>
<author>
<name>Matt Arsenault</name>
<email>Matthew.Arsenault@amd.com</email>
</author>
<published>2025-03-10T15:29:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2bada417c1f06361f4b7a992224bfb8e32d55ca6'/>
<id>2bada417c1f06361f4b7a992224bfb8e32d55ca6</id>
<content type='text'>
There are a surprising number of codegen changes from this.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are a surprising number of codegen changes from this.</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] Add `REQUIRES: asserts` to `llvm/test/Transforms/StructurizeCFG/simple-structurizecfg-crash.ll`</title>
<updated>2025-02-11T00:43:37+00:00</updated>
<author>
<name>Shilei Tian</name>
<email>i@tianshilei.me</email>
</author>
<published>2025-02-11T00:43:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=15412d9d83e23ce7de23dc7252391ee6403384af'/>
<id>15412d9d83e23ce7de23dc7252391ee6403384af</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[NFC][StructurizeCFG] Add a test that can crash StructurizeCFG pass (#126087)</title>
<updated>2025-02-10T16:12:54+00:00</updated>
<author>
<name>Shilei Tian</name>
<email>i@tianshilei.me</email>
</author>
<published>2025-02-10T16:12:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=71fcc825b4e271b7608b54de27ae69fe70f00fad'/>
<id>71fcc825b4e271b7608b54de27ae69fe70f00fad</id>
<content type='text'>
I tried to fix it in #124051 but failed to do so. This PR adds the test
and
marks it as xfail.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I tried to fix it in #124051 but failed to do so. This PR adds the test
and
marks it as xfail.</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Remove `br i1 undef` from some regression tests [NFC] (#118419)</title>
<updated>2024-12-03T20:54:36+00:00</updated>
<author>
<name>Lee Wei</name>
<email>lee10202013@gmail.com</email>
</author>
<published>2024-12-03T20:54:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=9bf6365237f3a8a401afc0a69d2fb6d1b809ce68'/>
<id>9bf6365237f3a8a401afc0a69d2fb6d1b809ce68</id>
<content type='text'>
This PR removes tests with `br i1 undef` under
`llvm/tests/Transforms/ObjCARC, Reassociate, SCCP, SLPVectorizer...`.
After this PR, I'll continue to fix tests under `llvm/tests/CodeGen`,
which has more UB tests than `llvm/tests/Transforms`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR removes tests with `br i1 undef` under
`llvm/tests/Transforms/ObjCARC, Reassociate, SCCP, SLPVectorizer...`.
After this PR, I'll continue to fix tests under `llvm/tests/CodeGen`,
which has more UB tests than `llvm/tests/Transforms`.</pre>
</div>
</content>
</entry>
<entry>
<title>Reapply "StructurizeCFG: Optimize phi insertion during ssa reconstruction (#101301)" (#114347)</title>
<updated>2024-11-01T00:29:59+00:00</updated>
<author>
<name>Ruiling, Song</name>
<email>ruiling.song@amd.com</email>
</author>
<published>2024-11-01T00:29:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=54d31bde324523d946fd87f5c5d5e271826209d6'/>
<id>54d31bde324523d946fd87f5c5d5e271826209d6</id>
<content type='text'>
This reverts commit be40c723ce2b7bf2690d22039d74d21b2bd5b7cf.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit be40c723ce2b7bf2690d22039d74d21b2bd5b7cf.</pre>
</div>
</content>
</entry>
<entry>
<title>[AMDGPU][StructurizeCFG] Maintain branch MD_prof metadata (#109813)</title>
<updated>2024-09-25T11:15:23+00:00</updated>
<author>
<name>Juan Manuel Martinez Caamaño</name>
<email>jmartinezcaamao@gmail.com</email>
</author>
<published>2024-09-25T11:15:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b40ff5ac2d407074db4479c6e271f51c3f5db4c2'/>
<id>b40ff5ac2d407074db4479c6e271f51c3f5db4c2</id>
<content type='text'>
Currently `StructurizeCFG` drops branch_weight metadata .
This metadata can be generated from user annotations in the source code
like:

```cpp
if (...) [[likely]] {
}
```</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently `StructurizeCFG` drops branch_weight metadata .
This metadata can be generated from user annotations in the source code
like:

```cpp
if (...) [[likely]] {
}
```</pre>
</div>
</content>
</entry>
<entry>
<title>[AMDGPU][StructurizeCFG] pre-commit tests: maintain branch_weights metadata (#109812)</title>
<updated>2024-09-25T06:57:18+00:00</updated>
<author>
<name>Juan Manuel Martinez Caamaño</name>
<email>jmartinezcaamao@gmail.com</email>
</author>
<published>2024-09-25T06:57:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d7c6e943836368c17467f2d0dcf1e8caddbd9b6d'/>
<id>d7c6e943836368c17467f2d0dcf1e8caddbd9b6d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[FixIrreducible] Use CycleInfo instead of a custom SCC traversal (#101386)</title>
<updated>2024-08-26T10:21:34+00:00</updated>
<author>
<name>Sameer Sahasrabuddhe</name>
<email>sameer.sahasrabuddhe@amd.com</email>
</author>
<published>2024-08-26T10:21:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=fa4cc9ddd58eb9fef2497e678873ff3b495340a3'/>
<id>fa4cc9ddd58eb9fef2497e678873ff3b495340a3</id>
<content type='text'>
[FixIrreducible] Use CycleInfo instead of a custom SCC traversal

1. CycleInfo efficiently locates all cycles in a single pass, while the
SCC is
   repeated inside every natural loop.

2. CycleInfo provides a hierarchy of irreducible cycles, and the new
implementation transforms each cycle in this hierarchy separately
instead of
reducing an entire irreducible SCC in a single step. This reduces the
number
of control-flow paths that pass through the header of each newly created
loop. This is evidenced by the reduced number of predecessors on the
"guard"
blocks in the lit tests, and fewer operands on the corresponding PHI
nodes.

3. When an entry of an irreducible cycle is the header of a child
natural loop,
the original implementation destroyed that loop. This is now preserved,
   since the incoming edges on non-header entries are not touched.

4. In the new implementation, if an irreducible cycle is a superset of a
natural
loop with the same header, then that natural loop is destroyed and
replaced
   by the newly created loop.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[FixIrreducible] Use CycleInfo instead of a custom SCC traversal

1. CycleInfo efficiently locates all cycles in a single pass, while the
SCC is
   repeated inside every natural loop.

2. CycleInfo provides a hierarchy of irreducible cycles, and the new
implementation transforms each cycle in this hierarchy separately
instead of
reducing an entire irreducible SCC in a single step. This reduces the
number
of control-flow paths that pass through the header of each newly created
loop. This is evidenced by the reduced number of predecessors on the
"guard"
blocks in the lit tests, and fewer operands on the corresponding PHI
nodes.

3. When an entry of an irreducible cycle is the header of a child
natural loop,
the original implementation destroyed that loop. This is now preserved,
   since the incoming edges on non-header entries are not touched.

4. In the new implementation, if an irreducible cycle is a superset of a
natural
loop with the same header, then that natural loop is destroyed and
replaced
   by the newly created loop.</pre>
</div>
</content>
</entry>
</feed>
