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

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 16:45:05 PST 2024


topperc wrote:

I've updated the patch to check isLegalAddImmediate for the constant we that promotion will generate. If it's not legal we continue treating the add as a source instead of promoting it.

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


More information about the llvm-commits mailing list