Skip to content

Commit

Permalink
Fix flag condition when creating SimpleLoopUnswitchLegacyPass
Browse files Browse the repository at this point in the history
  • Loading branch information
HighW4y2H3ll committed Jan 16, 2025
1 parent d1a62a6 commit a3c65ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffi/passmanagers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ LLVMPY_AddLoopUnrollAndJamPass(LLVMPassManagerRef PM) {
API_EXPORT(void)
LLVMPY_AddLoopUnswitchPass(LLVMPassManagerRef PM, bool optimizeForSize,
bool hasBranchDivergence) {
unwrap(PM)->add(createSimpleLoopUnswitchLegacyPass(optimizeForSize));
unwrap(PM)->add(createSimpleLoopUnswitchLegacyPass(!optimizeForSize));
}

API_EXPORT(void)
Expand Down

0 comments on commit a3c65ce

Please sign in to comment.