From bdf67c9a00d0cba65506f39edc4d06d4aac98cff Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Tue, 23 Aug 2016 21:01:33 +0000 Subject: GlobalISel: make truncate/extend casts uniform They really should have both types represented, but early variants were created before MachineInstrs could have multiple types so they're rather ambiguous. llvm-svn: 279567 --- llvm/lib/CodeGen/GlobalISel/MachineLegalizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/GlobalISel/MachineLegalizer.cpp') diff --git a/llvm/lib/CodeGen/GlobalISel/MachineLegalizer.cpp b/llvm/lib/CodeGen/GlobalISel/MachineLegalizer.cpp index 6ac0c80c836..6c00810fb68 100644 --- a/llvm/lib/CodeGen/GlobalISel/MachineLegalizer.cpp +++ b/llvm/lib/CodeGen/GlobalISel/MachineLegalizer.cpp @@ -27,7 +27,7 @@ using namespace llvm; MachineLegalizer::MachineLegalizer() : TablesInitialized(false) { // FIXME: these two can be legalized to the fundamental load/store Jakob // proposed. Once loads & stores are supported. - DefaultActions[TargetOpcode::G_ANYEXTEND] = Legal; + DefaultActions[TargetOpcode::G_ANYEXT] = Legal; DefaultActions[TargetOpcode::G_TRUNC] = Legal; DefaultActions[TargetOpcode::G_INTRINSIC] = Legal; -- cgit v1.2.3