[llvm] [InstCombine][VectorCombine] Move bitcast vp.load fold into VectorCombine (PR #200321)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri May 29 03:09:49 PDT 2026
================
@@ -5823,6 +5824,67 @@ bool VectorCombine::foldDeinterleaveIntrinsics(Instruction &I) {
return true;
}
+bool VectorCombine::foldBitcastOfVPLoad(Instruction &I) {
+ const DataLayout &DL = I.getDataLayout();
+ auto *Cast = dyn_cast<CastInst>(&I);
+ if (!Cast || !Cast->isNoopCast(DL) || !isa<VectorType>(Cast->getDestTy()))
----------------
RKSimon wrote:
any chance you can use PatternMatch for all of this?
https://github.com/llvm/llvm-project/pull/200321
More information about the llvm-commits
mailing list