[all-commits] [llvm/llvm-project] 450edb: [RISCV] Explicitly select second operand of branch...
Craig Topper via All-commits
all-commits at lists.llvm.org
Mon Aug 1 11:17:47 PDT 2022
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-08-01 (Mon, 01 Aug 2022)
[RISCV] Explicitly select second operand of branch condition to X0.
At least based on the lit tests, the coalescer sometimes fails to
propagate the copy from X0 into the branch instruction. This patch
does it manually during isel. The majority of the changes are from
the select patterns.
Some of the changes are just register allocation changes. Only
the Select change affects the whether a b*z instruction is generated
in the tests. I changed the branch pattern for consistency.
Reviewed By: asb
Differential Revision: https://reviews.llvm.org/D130809
More information about the All-commits