[all-commits] [llvm/llvm-project] f2f584: [WebAssembly][FastISel] Fold AND mask operations i...
hanbeom via All-commits
all-commits at lists.llvm.org
Tue Mar 10 19:31:10 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f2f5845f195aa5bb25d28702daadc628cfdeabea
https://github.com/llvm/llvm-project/commit/f2f5845f195aa5bb25d28702daadc628cfdeabea
Author: hanbeom <kese111 at gmail.com>
Date: 2026-03-11 (Wed, 11 Mar 2026)
Changed paths:
M llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
M llvm/test/CodeGen/WebAssembly/load-ext.ll
M llvm/test/CodeGen/WebAssembly/offset-fastisel.ll
Log Message:
-----------
[WebAssembly][FastISel] Fold AND mask operations into ZExt load (#183743)
FastISel emits separate load and AND instructions for bitmasking.
(before) %1:i32 = LOAD_I32 %addr; %2:i32 = AND_I32 %1, 255
Fold AND masks into ZExt loads by verifying operands with
maskTrailingOnes. A getFoldedLoadOpcode wrapper is implemented
to manage dispatching logic for better extensibility.
(after) %1:i32 = LOAD8_U_I32 %addr
Fixed: https://github.com/llvm/llvm-project/issues/180783
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list