aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstrBundle.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-03-20 22:02:40 -0700
committerCraig Topper <craig.topper@sifive.com>2022-03-20 22:41:39 -0700
commit4b28980772402cab998e2c42e4876d6decb48583 (patch)
tree49a8fcb1c96a24c773e1309ea864fa5c3d46cfd8 /llvm/lib/CodeGen/MachineInstrBundle.cpp
parentafc2f024462951d6e74c5e733f4b4666e21d3309 (diff)
downloadllvm-4b28980772402cab998e2c42e4876d6decb48583.zip
llvm-4b28980772402cab998e2c42e4876d6decb48583.tar.gz
llvm-4b28980772402cab998e2c42e4876d6decb48583.tar.bz2
[X86] Simplify the interface to getCondNoFromDesc.
Instead of taking a SkipDefs parameter, rename to getCondSrcNoFromDesc and have it return the source operand number. Make getCondFromMI responsible for adding the number of Defs for MI instructions. While there remove some unneeded casts to unsigned and check for negative numbers instead of explicitly -1. Less than 0 is easier for a compiler to codegen. Differential Revision: https://reviews.llvm.org/D122113
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstrBundle.cpp')
0 files changed, 0 insertions, 0 deletions