[PATCH 0/2] Remove unreachable code and move label after unreachable condition

Samuel Tardieu posted 2 patches 1 year, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20231214233055.2505387-1-sam@rfc1149.net
Maintainers: Richard Henderson <richard.henderson@linaro.org>
tcg/region.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
[PATCH 0/2] Remove unreachable code and move label after unreachable condition
Posted by Samuel Tardieu 1 year, 11 months ago
Unreachable code in an error handling block is listed in issue
https://gitlab.com/qemu-project/qemu/-/issues/2030.

After removing this code, the `fail` label is now immediately followed
by a test whose condition can never be true when coming explicitly
via this label. Moving the label down preserves the fall-through
case while avoiding testing an always false condition.

Samuel Tardieu (2):
  tcg: Remove unreachable code
  tcg: Jump after always false condition

 tcg/region.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

-- 
2.42.0