]> git.ipfire.org Git - thirdparty/gcc.git/commit
lower-bitint: Don't use m_loads for loads used in GIMPLE_ASM [PR113464]
authorJakub Jelinek <jakub@redhat.com>
Fri, 19 Jan 2024 09:01:43 +0000 (10:01 +0100)
committerJakub Jelinek <jakub@redhat.com>
Fri, 19 Jan 2024 09:01:43 +0000 (10:01 +0100)
commitee2aa93e9cd0d62f840cb6614c3cd12c15301a72
treeb4fc12d41f3ec7bffef2be9a560e84efc61402d3
parentdf1cd90e32bb17d34f5fdce99bd0377fe1b8e5c6
lower-bitint: Don't use m_loads for loads used in GIMPLE_ASM [PR113464]

Like for GIMPLE_PHIs or calls, even for GIMPLE_ASMs we want
a corresponding VAR_DECL assigned for lhs SSA_NAMEs of loads
from memory, as even GIMPLE_ASM relies on those VAR_DECLs to exist.

2024-01-19  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/113464
* gimple-lower-bitint.cc (gimple_lower_bitint): Don't try to
optimize loads into GIMPLE_ASM stmts.

* gcc.dg/bitint-75.c: New test.
gcc/gimple-lower-bitint.cc
gcc/testsuite/gcc.dg/bitint-75.c [new file with mode: 0644]