Skip to content

[NFC] Fix typos 'bicast' -> 'bitcast'#180890

Merged
Xeonacid merged 1 commit intollvm:mainfrom
MouseSplinter:fix_typo_bicast
Feb 15, 2026
Merged

[NFC] Fix typos 'bicast' -> 'bitcast'#180890
Xeonacid merged 1 commit intollvm:mainfrom
MouseSplinter:fix_typo_bicast

Conversation

@MouseSplinter
Copy link
Contributor

@MouseSplinter MouseSplinter commented Feb 11, 2026

Fix typos bicast -> bitcast. I find this when I'm resovling a codegen prepare optimazation.

@llvmbot
Copy link
Member

llvmbot commented Feb 11, 2026

@llvm/pr-subscribers-llvm-transforms

Author: Wang Yaduo (MouseSplinter)

Changes

Fix typos bicast -> bitcast.


Full diff: https://github.com/llvm/llvm-project/pull/180890.diff

2 Files Affected:

  • (modified) llvm/lib/CodeGen/CodeGenPrepare.cpp (+1-1)
  • (modified) llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp (+1-1)
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,

Copy link
Contributor

@wenju-he wenju-he left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Xeonacid Xeonacid merged commit ee9aeb4 into llvm:main Feb 15, 2026
10 checks passed
@llvm-ci
Copy link

llvm-ci commented Feb 15, 2026

LLVM Buildbot has detected a new failure on builder lldb-aarch64-windows running on linaro-armv8-windows-msvc-05 while building llvm at step 6 "test".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/141/builds/15442

Here is the relevant piece of the build log for the reference
Step 6 (test) failure: build (failure)
...
PASS: lldb-api :: functionalities/alias/TestBtAliasRepeat.py (303 of 2448)
PASS: lldb-api :: functionalities/alias/TestPAlias.py (304 of 2448)
PASS: lldb-api :: functionalities/ambigous_commands/TestAmbiguousCommands.py (305 of 2448)
UNSUPPORTED: lldb-api :: functionalities/asan/TestMemoryHistory.py (306 of 2448)
UNSUPPORTED: lldb-api :: functionalities/asan/TestReportData.py (307 of 2448)
UNSUPPORTED: lldb-api :: functionalities/avoids-fd-leak/TestFdLeak.py (308 of 2448)
PASS: lldb-api :: functionalities/archives/TestBSDArchives.py (309 of 2448)
PASS: lldb-api :: functionalities/backticks/TestBackticksWithoutATarget.py (310 of 2448)
PASS: lldb-api :: functionalities/breakpoint/address_breakpoints/TestAddressBreakpoints.py (311 of 2448)
PASS: lldb-api :: functionalities/breakpoint/address_breakpoints/TestBadAddressBreakpoints.py (312 of 2448)
FAIL: lldb-api :: functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py (313 of 2448)
******************** TEST 'lldb-api :: functionalities/breakpoint/auto_continue/TestBreakpointAutoContinue.py' FAILED ********************
Script:
--
C:/Users/tcwg/scoop/apps/python/current/python.exe C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/llvm-project/lldb\test\API\dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./lib --env LLVM_INCLUDE_DIR=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/include --env LLVM_TOOLS_DIR=C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin --arch aarch64 --build-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/lldb-test-build.noindex --lldb-module-cache-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/lldb-test-build.noindex/module-cache-lldb\lldb-api --clang-module-cache-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/lldb-test-build.noindex/module-cache-clang\lldb-api --executable C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/lldb.exe --compiler C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/clang.exe --dsymutil C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin/dsymutil.exe --make C:/Users/tcwg/scoop/shims/make.exe --llvm-tools-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./bin --lldb-obj-root C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/tools/lldb --lldb-libs-dir C:/Users/tcwg/llvm-worker/lldb-aarch64-windows/build/./lib --cmake-build-type Release --skip-category=watchpoint C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\test\API\functionalities\breakpoint\auto_continue -p TestBreakpointAutoContinue.py
--
Exit Code: 1

Command Output (stdout):
--
lldb version 23.0.0git (https://github.com/llvm/llvm-project.git revision ee9aeb4e05aa8edd2077b79f6712ea353ef5be77)
  clang revision ee9aeb4e05aa8edd2077b79f6712ea353ef5be77
  llvm revision ee9aeb4e05aa8edd2077b79f6712ea353ef5be77
(lldb)  break modify --auto-continue 0 BKPT
Set a breakpoint here: 0 with: 0.

Set a breakpoint here: 1 with: 0.

Set another breakpoint here.

Set a breakpoint here: 0 with: 0.

Set a breakpoint here: 1 with: 0.

Set another breakpoint here.

Skipping the following test categories: watchpoint, libc++, libstdcxx, dwo, dsym, gmodules, debugserver, objc, fork, pexpect


--
Command Output (stderr):
--
PASS: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_auto_continue_on_location (TestBreakpointAutoContinue.BreakpointAutoContinue.test_auto_continue_on_location)

FAIL: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_auto_continue_with_command (TestBreakpointAutoContinue.BreakpointAutoContinue.test_auto_continue_with_command)

PASS: LLDB (C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\build\bin\clang.exe-aarch64) :: test_breakpoint_auto_continue (TestBreakpointAutoContinue.BreakpointAutoContinue.test_breakpoint_auto_continue)

======================================================================

manasij7479 pushed a commit to manasij7479/llvm-project that referenced this pull request Feb 18, 2026
Fix typos bicast -> bitcast. I find this when I'm resovling a codegen
prepare optimazation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants