diff options
author | Jeff Law <jlaw@ventanamicro.com> | 2024-07-21 08:41:28 -0600 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2024-07-21 08:41:28 -0600 |
commit | 9d8ef2711dfecd093077aef6123d9e93ea23454e (patch) | |
tree | efbcf90c6f0434777641131ff113f8898c50f8aa /libcpp/internal.h | |
parent | 91e468b72dafc9dcd5dcf7915f1d0ef172264d53 (diff) | |
download | gcc-9d8ef2711dfecd093077aef6123d9e93ea23454e.zip gcc-9d8ef2711dfecd093077aef6123d9e93ea23454e.tar.gz gcc-9d8ef2711dfecd093077aef6123d9e93ea23454e.tar.bz2 |
[PR rtl-optimization/115877][2/n] Improve liveness computation for constant initialization
While debugging pr115877, I noticed we were failing to remove the destination
register from LIVENOW bitmap when it was set to a constant value. ie (set
(dest) (const_int)). This was a trivial oversight in
safe_for_live_propagation.
I don't have an example of this affecting code generation, but it certainly
could. More importantly, by making LIVENOW more accurate it's easier to debug
when LIVENOW differs from expectations.
As with the prior patch this has been tested as part of a larger patchset with
the crosses as well as individually on x86_64.
Pushing to the trunk,
PR rtl-optimization/115877
gcc/
* ext-dce.cc (safe_for_live_propagation): Handle RTX_CONST_OBJ.
Diffstat (limited to 'libcpp/internal.h')
0 files changed, 0 insertions, 0 deletions