http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53948
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-08 13:46:05 UTC --- Yeah, I agree with Jeff here, IMHO a helper function somewhere where both rtl.h and tree.h is included is best solution for now. As long as REG/MEM have REG_EXPR/MEM_EXPR, there is no actual separation between RTL IL and trees anyway, lots of RTL code calls the alias oracle that looks at the trees referenced from the RTL expressions, so I don't see why another little function couldn't be used instead of duplicating the info in the scarce RTL flags.