[llvm] bf6bc62 - GlobalISel: Use Register and update comment physical register syntax
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 21 16:12:04 PDT 2020
Author: Matt Arsenault
Date: 2020-07-21T19:11:57-04:00
New Revision: bf6bc62d1f2d1850b6651fb61b070c30cf422e62
URL: https://github.com/llvm/llvm-project/commit/bf6bc62d1f2d1850b6651fb61b070c30cf422e62
DIFF: https://github.com/llvm/llvm-project/commit/bf6bc62d1f2d1850b6651fb61b070c30cf422e62.diff
LOG: GlobalISel: Use Register and update comment physical register syntax
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
index 10f696d6a3b3..6a6137d46676 100644
--- a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
@@ -106,8 +106,8 @@ MachineInstrBuilder MachineIRBuilder::buildConstDbgValue(const Constant &C,
} else if (auto *CFP = dyn_cast<ConstantFP>(&C)) {
MIB.addFPImm(CFP);
} else {
- // Insert %noreg if we didn't find a usable constant and had to drop it.
- MIB.addReg(0U);
+ // Insert $noreg if we didn't find a usable constant and had to drop it.
+ MIB.addReg(Register());
}
MIB.addImm(0).addMetadata(Variable).addMetadata(Expr);
More information about the llvm-commits
mailing list