diff options
author | Matthias Braun <matze@braunis.de> | 2018-10-08 23:47:35 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2018-10-08 23:47:35 +0000 |
commit | c9dac6b9b4b06db99fc21251c104a77086a08c15 (patch) | |
tree | 5fab11d057ced7c8d0fb0e43058270f450f1271a /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | 66badb38b2a0d92aa5009ab0f680cf7c2bdf7c90 (diff) | |
download | bcm5719-llvm-c9dac6b9b4b06db99fc21251c104a77086a08c15.tar.gz bcm5719-llvm-c9dac6b9b4b06db99fc21251c104a77086a08c15.zip |
TwoAddressInstructionPass: Modernize/fix some comments; NFC
llvm-svn: 344006
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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)) |