<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/spirv/forceinline-nohoist.slang, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2025-04-11T21:51:48+00:00</updated>
<entry>
<title>Add flag to hoist instructions (#6740)</title>
<updated>2025-04-11T21:51:48+00:00</updated>
<author>
<name>jarcherNV</name>
<email>jarcher@nvidia.com</email>
</author>
<published>2025-04-11T21:51:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=61a6c211b1587a7b9ed6a24ae1ba6fe0600c80d8'/>
<id>urn:sha1:61a6c211b1587a7b9ed6a24ae1ba6fe0600c80d8</id>
<content type='text'>
This fixes issue #6654

Only hoist instructions that are optimized by prepareFuncForForwardDiff.
Add flag hoistLoopInvariantInsts to IRSimplificationOptions and set this
to true only if called from prepareFuncForForwardDiff, then only hoist
if the flag is set. Additionally, do not hoist loops if they only have a
single trivial iteration.</content>
</entry>
</feed>
