From c9dac6b9b4b06db99fc21251c104a77086a08c15 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Mon, 8 Oct 2018 23:47:35 +0000 Subject: TwoAddressInstructionPass: Modernize/fix some comments; NFC llvm-svn: 344006 --- llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp') diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index 0ca435016ea..99ccb0f9c9f 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -592,17 +592,17 @@ isProfitableToCommute(unsigned regA, unsigned regB, unsigned regC, // the two-address register. // e.g. // %reg1028 = EXTRACT_SUBREG killed %reg1027, 1 - // %reg1029 = MOV8rr %reg1028 + // %reg1029 = COPY %reg1028 // %reg1029 = SHR8ri %reg1029, 7, implicit dead %eflags - // insert => %reg1030 = MOV8rr %reg1028 + // insert => %reg1030 = COPY %reg1028 // %reg1030 = ADD8rr killed %reg1028, killed %reg1029, implicit dead %eflags - // In this case, it might not be possible to coalesce the second MOV8rr + // In this case, it might not be possible to coalesce the second COPY // instruction if the first one is coalesced. So it would be profitable to // commute it: // %reg1028 = EXTRACT_SUBREG killed %reg1027, 1 - // %reg1029 = MOV8rr %reg1028 + // %reg1029 = COPY %reg1028 // %reg1029 = SHR8ri %reg1029, 7, implicit dead %eflags - // insert => %reg1030 = MOV8rr %reg1029 + // insert => %reg1030 = COPY %reg1029 // %reg1030 = ADD8rr killed %reg1029, killed %reg1028, implicit dead %eflags if (!isPlainlyKilled(MI, regC, LIS)) -- cgit v1.2.3