[PATCH] D89625: Add default value for MachineInstr::modifiesRegister. NFC.
Momchil Velikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 5 10:50:52 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG35d625125465: Add default value for MachineInstr::modifiesRegister. NFC. (authored by chill).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D89625/new/
https://reviews.llvm.org/D89625
Files:
llvm/include/llvm/CodeGen/MachineInstr.h
Index: llvm/include/llvm/CodeGen/MachineInstr.h
===================================================================
--- llvm/include/llvm/CodeGen/MachineInstr.h
+++ llvm/include/llvm/CodeGen/MachineInstr.h
@@ -1333,7 +1333,8 @@
/// Return true if the MachineInstr modifies (fully define or partially
/// define) the specified register.
/// NOTE: It's ignoring subreg indices on virtual registers.
- bool modifiesRegister(Register Reg, const TargetRegisterInfo *TRI) const {
+ bool modifiesRegister(Register Reg,
+ const TargetRegisterInfo *TRI = nullptr) const {
return findRegisterDefOperandIdx(Reg, false, true, TRI) != -1;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89625.303189.patch
Type: text/x-patch
Size: 672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201105/9a6a6210/attachment.bin>
More information about the llvm-commits
mailing list