[all-commits] [llvm/llvm-project] ce1631: [InstCombine] Fold bitcast into vp.load (#192173)
Min-Yih Hsu via All-commits
all-commits at lists.llvm.org
Fri Apr 17 14:22:24 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ce1631a322f9db1c5630b6db403c6bf29a9144a7
https://github.com/llvm/llvm-project/commit/ce1631a322f9db1c5630b6db403c6bf29a9144a7
Author: Min-Yih Hsu <min.hsu at sifive.com>
Date: 2026-04-17 (Fri, 17 Apr 2026)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
A llvm/test/Transforms/InstCombine/fold-vp-load.ll
Log Message:
-----------
[InstCombine] Fold bitcast into vp.load (#192173)
Similar to normal loads, we should be able to fold bitcast into
`vp.load` if (1) mask is all-ones (2) either the new vector type has a
larger known minimum length than that of the original vector, or you
need to make sure the original EVL can be exact divided by the
decreasing factor (of the known minimum length).
This patch adds such folding pattern, though it only support cases where
the new vector type has a larger known minimum length.
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