aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineScheduler.cpp
diff options
context:
space:
mode:
authorDiana Picus <Diana-Magda.Picus@amd.com>2023-01-09 09:21:41 +0100
committerDiana Picus <Diana-Magda.Picus@amd.com>2023-01-13 09:32:58 +0100
commit2004ab422a01b24c183f958b10ec4845aeb9b453 (patch)
tree405e1cb44eec85a6cc6ff4df8e25161f56d79f38 /llvm/lib/CodeGen/MachineScheduler.cpp
parentf95a5fbe7ce1ddc890868a2b4720b4561af672cf (diff)
downloadllvm-2004ab422a01b24c183f958b10ec4845aeb9b453.zip
llvm-2004ab422a01b24c183f958b10ec4845aeb9b453.tar.gz
llvm-2004ab422a01b24c183f958b10ec4845aeb9b453.tar.bz2
MachineIRBuilder: Add buildMergeValues. NFC
Add a `buildMergeValues` method that unconditionally builds a G_MERGE_VALUES instruction, as opposed to `buildMergeLikeInstr` which may decide on a different opcode based on the input types. I haven't audited all the uses of `buildMergeLikeInstr` to see if they can be replaced with `buildMergeValues`, but I did find a couple of obvious ones where we check that we're merging scalars right before calling `buildMerge`. This is a follow-up suggested in https://reviews.llvm.org/D140964 Differential Revision: https://reviews.llvm.org/D141373
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions