OSDN Git Service

Opt compiler: Fix HNot on ARM64.
authorAlexandre Rames <alexandre.rames@arm.com>
Fri, 7 Nov 2014 15:56:50 +0000 (15:56 +0000)
committerAlexandre Rames <alexandre.rames@arm.com>
Fri, 7 Nov 2014 15:56:50 +0000 (15:56 +0000)
compiler/optimizing/code_generator_arm64.cc

index 8e3409f..1f1b366 100644 (file)
@@ -1060,7 +1060,7 @@ void InstructionCodeGeneratorARM64::VisitNewInstance(HNewInstance* instruction)
 
 void LocationsBuilderARM64::VisitNot(HNot* instruction) {
   LocationSummary* locations = new (GetGraph()->GetArena()) LocationSummary(instruction);
-  locations->SetInAt(0, Location::RegisterOrConstant(instruction->InputAt(0)));
+  locations->SetInAt(0, Location::RequiresRegister());
   locations->SetOut(Location::RequiresRegister(), Location::kNoOutputOverlap);
 }