mbox series

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

Message ID 20231214233055.2505387-1-sam@rfc1149.net
Headers show
Series Remove unreachable code and move label after unreachable condition | expand

Message

Samuel Tardieu Dec. 14, 2023, 11:30 p.m. UTC
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(-)