[all-commits] [llvm/llvm-project] 7dda6c: [RISCV] Refactor the common combines for SELECT_CC...
Craig Topper via All-commits
all-commits at lists.llvm.org
Wed Jul 20 21:24:34 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7dda6c71b1a12a49adb488b8f4ea2da54072099f
https://github.com/llvm/llvm-project/commit/7dda6c71b1a12a49adb488b8f4ea2da54072099f
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-07-20 (Wed, 20 Jul 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Log Message:
-----------
[RISCV] Refactor the common combines for SELECT_CC and BR_CC into a helper function.
The only difference between the combines were the calls to getNode
that include the true/false values for SELECT_CC or the chain
and branch target for BR_CC.
Wrap the rest of the code into a helper that reads LHS, RHS, and
CC and outputs new values and a bool if a new node needs to be
created.
More information about the All-commits
mailing list