On 13/09/18 15:16, Paul Koning wrote:
If you don't have machine operations that add without messing with condition codes, wouldn't it make sense to omit the definition of the add-pointer patterns? GCC will build things out of normal (CC-clobbering) adds if there are no add-pointer operations, which may well be more efficient in most cases than explicitly saving/restoring a CC that may in fact not matter right at that spot.
I thought the whole point of addptr is that it *is* needed when add clobbers CC? As in, LRA spills are malformed without this. Did something change? The internals manual still says "It only needs to be defined if addm3 sets the condition code." Andrew