[llvm] [TypePromotion] Support positive addition amounts in isSafeWrap. (PR #81690)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 29 20:03:55 PST 2024


AtariDreams wrote:

This is much better! However, there is one more nit I have. It is that I think this should be done on a platform-specific basis, on platforms where it is cheaper to do the wrap around (like ARM) for big enough numbers, than it is to do without it. 

It should be a cheaper immediate is what I am saying, but I do not know if LLVM lets you determine that without delving into platform specific behavior.

https://github.com/llvm/llvm-project/pull/81690


More information about the llvm-commits mailing list