[all-commits] [llvm/llvm-project] 5ca39a: [RISCV] Remove an unnecessary copy of X0 in select...
Craig Topper via All-commits
all-commits at lists.llvm.org
Thu Jun 30 15:12:46 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5ca39a55a7ea383cdf4a557689af741027b0f3db
https://github.com/llvm/llvm-project/commit/5ca39a55a7ea383cdf4a557689af741027b0f3db
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-06-30 (Thu, 30 Jun 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
Log Message:
-----------
[RISCV] Remove an unnecessary copy of X0 in selectShiftMask.
We know which instruction we're emitting so its ok to directly
encode X0 into the instruction. We only need to create a copy when
a constant 0 is selected without context of what instructions uses it.
More information about the All-commits
mailing list