[all-commits] [llvm/llvm-project] 126016: [InstCombine] Simplify nonnull pointers (#128111)
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Fri Feb 21 23:30:27 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 126016b6620e1e64e1685e06f4c6bb1e5a2508ed
https://github.com/llvm/llvm-project/commit/126016b6620e1e64e1685e06f4c6bb1e5a2508ed
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2025-02-22 (Sat, 22 Feb 2025)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
M llvm/lib/Transforms/InstCombine/InstCombineInternal.h
M llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
M llvm/test/Transforms/InstCombine/nonnull-select.ll
M llvm/test/Transforms/PhaseOrdering/load-store-sameval.ll
A llvm/test/Transforms/PhaseOrdering/memset-combine.ll
Log Message:
-----------
[InstCombine] Simplify nonnull pointers (#128111)
This patch is the follow-up of
https://github.com/llvm/llvm-project/pull/127979. It introduces a helper
`simplifyNonNullOperand` to avoid duplicate logic. It also addresses the
one-use issue in `visitLoadInst`, as discussed in
https://github.com/llvm/llvm-project/pull/127979#issuecomment-2671013972.
The `nonnull` attribute is also supported. Proof:
https://alive2.llvm.org/ce/z/MCKgT9
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