Skip to content

Commit 3a78b67

Browse files
authored
NFC: Comment, refactor, and test hlsl::RemoveUnstructuredLoopExits (microsoft#6655)
Add a pass to run hlsl::RemoveUnstructuredLoopExits in isolation Example: opt -dxil-r-u-l-e a.ll -S Add some basic tests. No functional change to the pass itself.
1 parent 128e6ce commit 3a78b67

File tree

9 files changed

+660
-93
lines changed

9 files changed

+660
-93
lines changed

include/llvm/InitializePasses.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ void initializeDxilReinsertNopsPass(PassRegistry&);
272272
void initializeDxilFinalizePreservesPass(PassRegistry&);
273273
void initializeDxilPreserveToSelectPass(PassRegistry&);
274274
void initializeDxilRemoveDeadBlocksPass(PassRegistry&);
275+
void initializeDxilRemoveUnstructuredLoopExitsPass(PassRegistry &);
275276
void initializeDxilRewriteOutputArgDebugInfoPass(PassRegistry&);
276277
// HLSL Change Ends
277278
void initializeScalarEvolutionAliasAnalysisPass(PassRegistry&);

include/llvm/Transforms/Scalar.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ void initializeDxilPreserveToSelectPass(PassRegistry&);
153153
Pass *createDxilRemoveDeadBlocksPass();
154154
void initializeDxilRemoveDeadBlocksPass(PassRegistry&);
155155

156+
Pass *createDxilRemoveUnstructuredLoopExitsPass();
157+
void initializeDxilRemoveUnstructuredLoopExitsPass(PassRegistry &);
158+
156159
void initializeDxilRewriteOutputArgDebugInfoPass(PassRegistry&);
157160
Pass *createDxilRewriteOutputArgDebugInfoPass();
158161

0 commit comments

Comments
 (0)