]> git.ipfire.org Git - thirdparty/gcc.git/commit
Simplify gimple_assign_load
authorRichard Biener <rguenther@suse.de>
Fri, 16 Dec 2022 12:48:58 +0000 (13:48 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 19 Apr 2023 09:52:07 +0000 (11:52 +0200)
commit2c800ed8d59cffce678ef08a6d172465c17f015d
tree180b8b7e56b3e3dc2829b4a78a59ec7b52b6bee8
parent9bc407c787771baad6c69cee3e392f15a5b9163d
Simplify gimple_assign_load

The following simplifies and outlines gimple_assign_load.  In
particular it is not necessary to get at the base of the possibly
loaded expression but just handle the case of a single handled
component wrapping a non-memory operand.

* gimple.h (gimple_assign_load): Outline...
* gimple.cc (gimple_assign_load): ... here.  Avoid
get_base_address and instead just strip the outermost
handled component, treating a remaining handled component
as load.
gcc/gimple.cc
gcc/gimple.h