[llvm] [NFC] Fix typos 'bicast' -> 'bitcast' (PR #180890)
Wang Yaduo via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 21:57:35 PST 2026
https://github.com/MouseSplinter updated https://github.com/llvm/llvm-project/pull/180890
>From f321f1c638f04ff6bac832793829b2fe92bfeb08 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 bf56ffd3b4b7b..537b91bc39e0e 100644
--- a/llvm/lib/CodeGen/CodeGenPrepare.cpp
+++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -6973,7 +6973,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 93da510c5fbc0..2ed9359157fa8 100644
--- a/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
+++ b/llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
@@ -276,7 +276,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