From 57b2119961497720e81266a199337c3361508819 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 26 Jun 2015 19:00:11 +0000 Subject: [PATCH] Show invariant loads in MMO dumping git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240813 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineInstr.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 19ba5cfd34b..88cc14bcee8 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -588,6 +588,9 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const MachineMemOperand &MMO) { if (MMO.isNonTemporal()) OS << "(nontemporal)"; + if (MMO.isInvariant()) + OS << "(invariant)"; + return OS; } -- 2.34.1