All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Remove unreachable code and move label after unreachable condition
@ 2023-12-14 23:30 Samuel Tardieu
  2023-12-14 23:30 ` [PATCH 1/2] tcg: Remove unreachable code Samuel Tardieu
  2023-12-14 23:30 ` [PATCH 2/2] tcg: Jump after always false condition Samuel Tardieu
  0 siblings, 2 replies; 6+ messages in thread
From: Samuel Tardieu @ 2023-12-14 23:30 UTC (permalink / raw)
  To: qemu-devel; +Cc: Richard Henderson, Samuel Tardieu

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-19 18:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-14 23:30 [PATCH 0/2] Remove unreachable code and move label after unreachable condition Samuel Tardieu
2023-12-14 23:30 ` [PATCH 1/2] tcg: Remove unreachable code Samuel Tardieu
2023-12-19 17:14   ` Peter Maydell
2023-12-14 23:30 ` [PATCH 2/2] tcg: Jump after always false condition Samuel Tardieu
2023-12-19 17:26   ` Peter Maydell
2023-12-19 17:55     ` Samuel Tardieu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.