]> The Tcpdump Group git mirrors - libpcap/commit
[optimizer] Fix optimizer bug in dead store removal
authorArchit Shah <[email protected]>
Fri, 16 Oct 2020 23:52:39 +0000 (23:52 +0000)
committerGuy Harris <[email protected]>
Sun, 21 Jan 2024 22:45:49 +0000 (14:45 -0800)
commit06aa793eb84db8b549754e2f9e72988ef4480c54
tree756789ce97691f452e181438c155a264ca60d600
parentae7216eb6094534d2a3a739d8867feb33a9fd25e
[optimizer] Fix optimizer bug in dead store removal

Fix opt_deadstores in the optimizer to update the block val data structure with VAL_UNKNOWN when NOP'ing a dead store instruction. Otherwise, a successor block may assume that value is still available. See test case here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=144325.
optimize.c