[llvm] [IRBuilder][GlobalISel] Add byte ptr cast support in IRBuilder (PR #222049)
Anshil Gandhi via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 14:08:20 PDT 2026
================
@@ -140,9 +146,7 @@ Value *IRBuilderBase::CreateBitPreservingCastChain(const DataLayout &DL,
};
// See if we need inttoptr for this type pair. May require additional bitcast.
- bool OldIsIntLike =
- OldTy->isIntOrIntVectorTy() || OldTy->isByteOrByteVectorTy();
- if (OldIsIntLike && NewTy->isPtrOrPtrVectorTy()) {
+ if (OldTy->isIntOrIntVectorTy() && NewTy->isPtrOrPtrVectorTy()) {
----------------
gandhi56 wrote:
That's a good point.
https://github.com/llvm/llvm-project/pull/222049
More information about the llvm-commits
mailing list