linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] adjust phi-sources when merging BBs
@ 2020-11-11 23:52 Luc Van Oostenryck
  2020-11-11 23:52 ` [PATCH 1/2] add testcase for phi-adjusting during BB merge Luc Van Oostenryck
  2020-11-11 23:52 ` [PATCH 2/2] adjust phi-sources when merging BBs Luc Van Oostenryck
  0 siblings, 2 replies; 3+ messages in thread
From: Luc Van Oostenryck @ 2020-11-11 23:52 UTC (permalink / raw)
  To: linux-sparse; +Cc: Luc Van Oostenryck

When merging BBs, phi-sources from the bottom BB should 'overwrite'
the ones from the top BB which should be ignored. This is currently
the not case and both phi-sources are present in the resulting BB.
This doesn't make much sense for the corresponding phi-node and
also causes other problems like hindering further simplifications.

This series contains a testcase and a patch for this.

Luc Van Oostenryck (2):
  add testcase for phi-adjusting during BB merge
  adjust phi-sources when merging BBs

 flow.c                                  | 28 +++++++++++++++++++++++++
 validation/optim/merge_bbe-adjust_phi.c | 23 ++++++++++++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 validation/optim/merge_bbe-adjust_phi.c

-- 
2.29.2


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

end of thread, other threads:[~2020-11-12  1:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-11 23:52 [PATCH 0/2] adjust phi-sources when merging BBs Luc Van Oostenryck
2020-11-11 23:52 ` [PATCH 1/2] add testcase for phi-adjusting during BB merge Luc Van Oostenryck
2020-11-11 23:52 ` [PATCH 2/2] adjust phi-sources when merging BBs Luc Van Oostenryck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).