Re: [PATCH] varasm: Handle RAW_DATA_CST in compare_constant [PR117199]

2024-10-22 Thread Richard Biener
> Am 22.10.2024 um 20:07 schrieb Jakub Jelinek : > > Hi! > > On the following testcase without LTO we unnecessarily don't merge > two identical .LC* constants (constant hashing computes the same hash, > but as compare_constant returned false for the RAW_DATA_CST in it, > it never compares equ

[PATCH] varasm: Handle RAW_DATA_CST in compare_constant [PR117199]

2024-10-22 Thread Jakub Jelinek
Hi! On the following testcase without LTO we unnecessarily don't merge two identical .LC* constants (constant hashing computes the same hash, but as compare_constant returned false for the RAW_DATA_CST in it, it never compares equal), and with LTO fails to link because LTO assumes such constants h