mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-04-25 07:46:01 +03:00
[PR #448] [CLOSED] Fix for issue 331 #1570
Labels
No labels
Bloodborne
bug
contributor wanted
documentation
enhancement
frontend
good first issue
help wanted
linux
pull-request
question
release
verification progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shadPS4#1570
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/shadps4-emu/shadPS4/pull/448
Author: @Sailanarmo
Created: 8/16/2024
Status: ❌ Closed
Base:
main← Head:patch-321📝 Commits (8)
f5bb3d6Fix for issue 3313d36d4bUpdate src/shader_recompiler/frontend/control_flow_graph.cppfb89776Update src/shader_recompiler/frontend/control_flow_graph.cpp3c277f0Merge branch 'shadps4-emu:main' into patch-3214eaa098Update control_flow_graph.cppa374e7cUpdate control_flow_graph.cpp116119eUpdate control_flow_graph.cpp3f09e32Update control_flow_graph.cpp📊 Changes
1 file changed (+14 additions, -10 deletions)
View changed files
📝
src/shader_recompiler/frontend/control_flow_graph.cpp(+14 -10)📄 Description
After studying the for loop I became aware that the loop only needed to iterate to the size of labels - 2.
This line:
Would check if
next_itwas the last position in the container and return from the function. I simplified the for loop by terminating the loop as it gets to the second to last position in the container. So the logic goes:This should eliminate the need for the check if it is the last element in the container because we are only iterating to the second to last position of the container. The only concern I have is
inst_list. I did not find anywhere that makes it safe to assume that the size oflabelsis the same size ofinst_list. I think that should have some looking into.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.