[llvm] [InstCombine][VectorCombine] Move bitcast vp.load fold into VectorCombine (PR #200321)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 1 04:15:47 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()))
----------------
lukel97 wrote:
There's no isNoopCast pattern matcher unfortunately, but used pattern match for the vp.load in a0599d067444
https://github.com/llvm/llvm-project/pull/200321
More information about the llvm-commits
mailing list