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/MachineLegalizer.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/MachineLegalizer.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/MachineLegalizer.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/MachineLegalizer.cpp b/llvm/lib/CodeGen/GlobalISel/MachineLegalizer.cpp index 786deccbd05..9844dbb0120 100644 --- a/llvm/lib/CodeGen/GlobalISel/MachineLegalizer.cpp +++ b/llvm/lib/CodeGen/GlobalISel/MachineLegalizer.cpp @@ -33,11 +33,6 @@ MachineLegalizer::MachineLegalizer() : TablesInitialized(false) { DefaultActions[TargetOpcode::G_ANYEXT] = Legal; DefaultActions[TargetOpcode::G_TRUNC] = Legal; - // G_TYPE and G_PHI are essentially an annotated COPY/PHI instructions so - // they're always legal. - DefaultActions[TargetOpcode::G_TYPE] = Legal; - DefaultActions[TargetOpcode::G_PHI] = Legal; - DefaultActions[TargetOpcode::G_INTRINSIC] = Legal; DefaultActions[TargetOpcode::G_INTRINSIC_W_SIDE_EFFECTS] = Legal; |