projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05a2ae1
)
[RISCV][NFC] Refine the patch of D141061
author
Kito Cheng
<kito.cheng@sifive.com>
Thu, 5 Jan 2023 16:48:22 +0000
(
00:48
+0800)
committer
Kito Cheng
<kito.cheng@sifive.com>
Thu, 5 Jan 2023 16:48:24 +0000
(
00:48
+0800)
Just saw Craig's comment after I commit, he has suggest a good NFC
for that change.
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
index
bc6af29
..
115c962
100644
(file)
--- a/
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@
-1316,8
+1316,7
@@
void RISCVInsertVSETVLI::doLocalPostpass(MachineBasicBlock &MBB) {
MI.getOperand(1).ChangeToImmediate(NextMI->getOperand(1).getImm());
else
MI.getOperand(1).ChangeToRegister(NextMI->getOperand(1).getReg(), false);
- if (MI.getOpcode() != NextMI->getOpcode())
- MI.setDesc(TII->get(NextMI->getOpcode()));
+ MI.setDesc(NextMI->getDesc());
}
MI.getOperand(2).setImm(NextMI->getOperand(2).getImm());
ToDelete.push_back(NextMI);