[llvm] [NFC] Fix typos 'bicast' -> 'bitcast' (PR #180890)
Wang Yaduo via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 21:50:21 PST 2026
https://github.com/MouseSplinter created https://github.com/llvm/llvm-project/pull/180890
Fix typos bicast -> bitcast.
>From f38144be53828ab7262b4031c00303f8a450ae59 Mon Sep 17 00:00:00 2001
From: Wang Yaduo <wangyaduo at linux.alibaba.com>
Date: Wed, 11 Feb 2026 11:33:17 +0800
Subject: [PATCH] [NFC] Fix typos 'bicast' -> 'bitcast'
---
llvm/lib/CodeGen/CodeGenPrepare.cpp | 2 +-
llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp
index 65b5965d99c18..e79f911a6fb02 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -6972,7 +6972,7 @@ bool CodeGenPrepare::optimizePhiType(
SmallPtrSet<Instruction *, 4> Defs;
SmallPtrSet<Instruction *, 4> Uses;
// This works by adding extra bitcasts between load/stores and removing
- // existing bicasts. If we have a phi(bitcast(load)) or a store(bitcast(phi))
+ // existing bitcasts. If we have a phi(bitcast(load)) or a store(bitcast(phi))
// we can get in the situation where we remove a bitcast in one iteration
// just to add it again in the next. We need to ensure that at least one
// bitcast we remove are anchored to something that will not change back.
diff --git a/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp b/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
index 352a1b331001a..5a66b87598cb9 100644
--- a/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
+++ b/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
@@ -270,7 +270,7 @@ static Type *getPtrOrVecOfPtrsWithNewAS(Type *Ty, unsigned NewAddrSpace) {
return Ty->getWithNewType(NPT);
}
-// Check whether that's no-op pointer bicast using a pair of
+// Check whether that's no-op pointer bitcast using a pair of
// `ptrtoint`/`inttoptr` due to the missing no-op pointer bitcast over
// different address spaces.
static bool isNoopPtrIntCastPair(const Operator *I2P, const DataLayout &DL,
More information about the llvm-commits
mailing list