On 11/13/23 01:15, juzhe.zh...@rivai.ai wrote:
I know the root cause is:

(reg:DI 15 a5 [orig:175 _103 ] [175])

(reg:DI 15 a5 [orig:174 _100 ] [174])


is considered as true on rtx_equal_p.

I think return note1 == note2; will simplify your codes and fix this issue.
NOTEs are not shared (look at how they get chained and it's obvious they're not shared). So you can't use pointer equality, you must use rtx_equal_p.

More generally, nodes are not shared unless explicitly documented as such in the internals manual, "Sharing" section.

Jeff


Reply via email to