[all-commits] [llvm/llvm-project] 884b05: Recommit "[TypePromotion] Support positive additio...
Craig Topper via All-commits
all-commits at lists.llvm.org
Mon Mar 11 12:40:03 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 884b051a42896e94dc6032013e10483d84910f27
https://github.com/llvm/llvm-project/commit/884b051a42896e94dc6032013e10483d84910f27
Author: Craig Topper <craig.topper at sifive.com>
Date: 2024-03-11 (Mon, 11 Mar 2024)
Changed paths:
M llvm/lib/CodeGen/TypePromotion.cpp
M llvm/test/CodeGen/AArch64/and-mask-removal.ll
M llvm/test/CodeGen/AArch64/signed-truncation-check.ll
M llvm/test/CodeGen/AArch64/typepromotion-overflow.ll
M llvm/test/CodeGen/RISCV/typepromotion-overflow.ll
M llvm/test/Transforms/TypePromotion/ARM/icmps.ll
M llvm/test/Transforms/TypePromotion/ARM/wrapping.ll
Log Message:
-----------
Recommit "[TypePromotion] Support positive addition amounts in isSafeWrap. (#81690)"
With special case with Add constant is 0.
Original message:
We can support these by changing the sext promotion to -zext(-C) and
replacing a sgt check with ugt. Reframing the logic in terms of how the
unsigned range are affected. More comments in the patch.
The new cases check isLegalAddImmediate to avoid some
regressions in lit tests.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list