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:
a41af6e
)
[GlobalISel] Use existing MIR builder instead of creating one in combiner.
author
Amara Emerson
<amara@apple.com>
Thu, 23 Jul 2020 21:15:58 +0000
(14:15 -0700)
committer
Amara Emerson
<amara@apple.com>
Thu, 23 Jul 2020 21:16:45 +0000
(14:16 -0700)
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
index
eba1a52
..
422b71b
100644
(file)
--- a/
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
+++ b/
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
@@
-604,8
+604,8
@@
bool CombinerHelper::matchSextTruncSextLoad(MachineInstr &MI) {
bool CombinerHelper::applySextTruncSextLoad(MachineInstr &MI) {
assert(MI.getOpcode() == TargetOpcode::G_SEXT_INREG);
-
MachineIRBuilder MIB
(MI);
-
MIB
.buildCopy(MI.getOperand(0).getReg(), MI.getOperand(1).getReg());
+
Builder.setInstrAndDebugLoc
(MI);
+
Builder
.buildCopy(MI.getOperand(0).getReg(), MI.getOperand(1).getReg());
MI.eraseFromParent();
return true;
}