summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/IfConversion.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-27 17:05:33 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-02-27 17:05:33 +0000
commitf9ab416d7066d75ae1e42c706687926840454726 (patch)
treef76cb8b9e61eb0ac8cfd754317e6faf06ec75c81 /llvm/lib/CodeGen/IfConversion.cpp
parent13d3b9b7775c267412f63b97966ac508c2d26fd5 (diff)
downloadbcm5719-llvm-f9ab416d7066d75ae1e42c706687926840454726.tar.gz
bcm5719-llvm-f9ab416d7066d75ae1e42c706687926840454726.zip
WIP: CodeGen: Use MachineInstr& in MachineInstrBundle.h, NFC
Update APIs in MachineInstrBundle.h to take and return MachineInstr& instead of MachineInstr* when the instruction cannot be null. Besides being a nice cleanup, this is tacking toward a fix for PR26753. llvm-svn: 262141
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
-rw-r--r--llvm/lib/CodeGen/IfConversion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp
index 2bf0c661629..9e898db18f4 100644
--- a/llvm/lib/CodeGen/IfConversion.cpp
+++ b/llvm/lib/CodeGen/IfConversion.cpp
@@ -1049,7 +1049,7 @@ static void UpdatePredRedefs(MachineInstr &MI, LivePhysRegs &Redefs) {
* Remove kill flags from operands with a registers in the @p DontKill set.
*/
static void RemoveKills(MachineInstr &MI, const LivePhysRegs &DontKill) {
- for (MIBundleOperands O(&MI); O.isValid(); ++O) {
+ for (MIBundleOperands O(MI); O.isValid(); ++O) {
if (!O->isReg() || !O->isKill())
continue;
if (DontKill.contains(O->getReg()))
OpenPOWER on IntegriCloud