This is an archive of the discontinued LLVM Phabricator instance.

[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

Reviewers
nikic
RKSimon
Summary

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.

Diff Detail