https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62151
--- Comment #9 from amker at gcc dot gnu.org --- (In reply to Eric Botcazou from comment #8) > > I will try to test a patch, meanwhile, I am wondering if any combine expert > > has something to share. > > distribute_notes is certainly an endless source of bugs. One patch is sent at https://gcc.gnu.org/ml/gcc-patches/2014-08/msg01718.html It's a scratch patch for discussion's purpose. Though I think it's right to find distribution place for REG_DEAD note starting from i2 if it kills the register, I am not sure if it's fixing the issue in a case by case manner. So it's highly appreciated if any expert in this area can share some opinions, or review the patch? > > > BTW, combine pass seems to be another ad-hoc implementation like reload, I > > saw > > several "Don't know" in comments during this investigation! > > You would need to define what an "ad-hoc implementation" is exactly. See > the top of the file for the origin of the pass. Err, I may used the wrong word. These are just frustrating words after seeing several "Don't know" comments in the code. Please ignore them. Thanks.