diff options
author | Andrew Pinski <apinski@marvell.com> | 2022-07-07 22:06:19 +0000 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2022-07-27 11:23:44 +0200 |
commit | e0e388998b797da09a8c018f6f94d1358fd4b8f1 (patch) | |
tree | f9f2ed119cb56dda5728ef785b9d4ff374b2dbd8 /libsanitizer/lsan/lsan_linux.cpp | |
parent | 019a9ef7f7466c0f41bdc8c5838f4f4926c938aa (diff) |
Fix tree-opt/PR106087: ICE with inline-asm with multiple output and assigned only static vars
The problem here is that when we mark the ssa name that was referenced in the now removed
dead store (to a write only static variable), the inline-asm would also be removed
even though it was defining another ssa name. This fixes the problem by checking
to make sure that the statement was only defining one ssa name.
Committed as approved after a bootstrapped and tested on x86_64 with no regressions.
PR tree-optimization/106087
gcc/ChangeLog:
* tree-ssa-dce.cc (simple_dce_from_worklist): Check
to make sure the statement is only defining one operand.
gcc/testsuite/ChangeLog:
* gcc.c-torture/compile/inline-asm-1.c: New test.
(cherry picked from commit 71e3daa31cfa35ee58e5899cb00767be92227fd2)
Diffstat (limited to 'libsanitizer/lsan/lsan_linux.cpp')
0 files changed, 0 insertions, 0 deletions