Should "can_create_pseudo_p" check "lra_in_progress"?

Andrew Stubbs ams@codesourcery.com
Fri Oct 5 13:04:00 GMT 2018


I just tracked down a "reload" bug and was very surprised to find that 
can_create_pseudo_p doesn't return false during register allocation when 
using LRA.

It's still defined like this:

#define can_create_pseudo_p() (!reload_in_progress && !reload_completed)

Is it deliberate that it doesn't check lra_in_progress?

Thanks

Andrew



More information about the Gcc mailing list