[all-commits] [llvm/llvm-project] a71147: [WebAssembly] improve getRegForPromotedValue to av...
Congcong Cai via All-commits
all-commits at lists.llvm.org
Mon Feb 5 17:08:10 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a71147dd28c6676fc46e4ec0a5d6e0b0823cced5
https://github.com/llvm/llvm-project/commit/a71147dd28c6676fc46e4ec0a5d6e0b0823cced5
Author: Congcong Cai <congcongcai0907 at 163.com>
Date: 2024-02-06 (Tue, 06 Feb 2024)
Changed paths:
M llvm/lib/Target/WebAssembly/WebAssemblyFastISel.cpp
A llvm/test/CodeGen/WebAssembly/suboptimal-compare.ll
Log Message:
-----------
[WebAssembly] improve getRegForPromotedValue to avoid meanless value copy (#80469)
When promoted value, it is meaningless to copy value from reg to another
reg with the same type.
This PR add additional check for this cases to reduce the code size.
Fixes: #80053.
More information about the All-commits
mailing list