Re: [PATCH] Avoid using POINTER_DIFF_EXPR for overlap checks [PR119399]

2025-04-10 Thread Jakub Jelinek
On Thu, Apr 10, 2025 at 10:32:57AM +0100, Richard Sandiford wrote: > In r10-4803-g8489e1f45b50600c I'd used POINTER_DIFF_EXPR to subtract > the two pointers involved in an overlap test. I'm not sure whether > I'd specifically chosen that over MINUS_EXPR or not; if so, the only > reason I can think

[PATCH] Avoid using POINTER_DIFF_EXPR for overlap checks [PR119399]

2025-04-10 Thread Richard Sandiford
In r10-4803-g8489e1f45b50600c I'd used POINTER_DIFF_EXPR to subtract the two pointers involved in an overlap test. I'm not sure whether I'd specifically chosen that over MINUS_EXPR or not; if so, the only reason I can think of is that it is probably faster on targets with PSImode pointers. Regard