[arm-embedded] [PATCH, GCC/LRA] Fix PR78617: Fix conflict detection in rematerialization

2016-12-07 Thread Thomas Preudhomme
We decided to also apply this patch to fix a wrong code generation to the ARM embedded 6 branch. 2016-12-07 Thomas Preud'homme Backport from mainline 2016-12-07 Thomas Preud'homme gcc/ PR rtl-optimization/78617 * lra-remat.c (do_remat): Initialize live_hard_regs from

Re: [PATCH, GCC/LRA] Fix PR78617: Fix conflict detection in rematerialization

2016-12-07 Thread Vladimir N Makarov
On 12/01/2016 12:40 PM, Thomas Preudhomme wrote: Hi, When considering a candidate for rematerialization, LRA verifies if the candidate clobbers a live register before going forward with the rematerialization (see code starting with comment "Check clobbers do not kill something living."). To

[PATCH, GCC/LRA] Fix PR78617: Fix conflict detection in rematerialization

2016-12-01 Thread Thomas Preudhomme
Hi, When considering a candidate for rematerialization, LRA verifies if the candidate clobbers a live register before going forward with the rematerialization (see code starting with comment "Check clobbers do not kill something living."). To do this check, the set of live registers at any giv