We can zext / trunc a constant mask for free, so if one of the
masks if constant, we can proceed even if they are not the same type.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D156639
[InstCombine] Merge consecutive `llvm.ptrmask` with different mask types if a mask is constant. AbandonedPublic Authored by goldstein.w.n on Jul 30 2023, 4:01 PM.
Details
Diff Detail
Event Timelinegoldstein.w.n added a child revision: D156640: [InstCombine] Fold `(ptrtoint (ptrmask p0, m0))` -> `(and (ptrtoint p0), m0)`.Jul 30 2023, 4:02 PM goldstein.w.n added a parent revision: D156638: [InstCombine] Preserve return attributes when merging `llvm.ptrmask`.
Revision Contents
Diff 545483 llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/consecutive-ptrmask.ll
|