diff options
| author | Tim Northover <tnorthover@apple.com> | 2016-09-09 11:47:31 +0000 |
|---|---|---|
| committer | Tim Northover <tnorthover@apple.com> | 2016-09-09 11:47:31 +0000 |
| commit | 25d1286e5a8d7ff1521d3ee755640c61865ac325 (patch) | |
| tree | f4059d9b2d66ca3988c6af9c278e5097d0146a74 /llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | |
| parent | 1f8b1db93e76fc65d1113b60c4794cd241fd2145 (diff) | |
| download | bcm5719-llvm-25d1286e5a8d7ff1521d3ee755640c61865ac325.tar.gz bcm5719-llvm-25d1286e5a8d7ff1521d3ee755640c61865ac325.zip | |
GlobalISel: remove G_TYPE and G_PHI
These instructions were only necessary when type information was stored in the
MachineInstr (because only generic MachineInstrs possessed a type). Now that
it's in MachineRegisterInfo, COPY and PHI work fine.
llvm-svn: 281037
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp index 5a8f5190df2..6650a1e2073 100644 --- a/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp +++ b/llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp @@ -385,7 +385,7 @@ bool IRTranslator::translateStaticAlloca(const AllocaInst &AI) { bool IRTranslator::translatePHI(const User &U) { const PHINode &PI = cast<PHINode>(U); - auto MIB = MIRBuilder.buildInstr(TargetOpcode::G_PHI); + auto MIB = MIRBuilder.buildInstr(TargetOpcode::PHI); MIB.addDef(getOrCreateVReg(PI)); PendingPHIs.emplace_back(&PI, MIB.getInstr()); |

