[llvm] [LSV] Merge contiguous chains across scalar types (PR #154069)
Anshil Gandhi via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 21 20:55:41 PDT 2025
================
@@ -467,6 +489,98 @@ bool Vectorizer::run() {
return Changed;
}
+Value *Vectorizer::insertCast(Value *Val, Type *DstTy) {
+ if (DL.getTypeSizeInBits(Val->getType()) == DL.getTypeSizeInBits(DstTy)) {
+ return Builder.CreateBitOrPointerCast(Val, DstTy, Val->getName() + ".bc");
----------------
gandhi56 wrote:
`CreateBitOrPointerCast` does not emit an addrspacecast. It's `CreatePointerBitCastOrAddrSpaceCast` which does.
https://github.com/llvm/llvm-project/pull/154069
More information about the llvm-commits
mailing list