]> git.ipfire.org Git - thirdparty/gcc.git/commit
fwprop: Don't propagate asms [PR121253] master trunk
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 12 Aug 2025 09:21:47 +0000 (10:21 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 12 Aug 2025 09:21:47 +0000 (10:21 +0100)
commite82c8413eda498163ae2e0ecc458ea0428708c30
tree06b7bfd0fd5557dd9f102b70d79f649351080af4
parentc5dab6fb402c93a92f6aa808c43956dfb9328190
fwprop: Don't propagate asms [PR121253]

For the reasons explained in the comment, fwprop shouldn't even
try to propagate an asm definition.

gcc/
PR rtl-optimization/121253
* fwprop.cc (forward_propagate_into): Don't propagate asm defs.

gcc/testsuite/
PR rtl-optimization/121253
* gcc.target/aarch64/pr121253.c: New test.
gcc/fwprop.cc
gcc/testsuite/gcc.target/aarch64/pr121253.c [new file with mode: 0644]