]> granicus.if.org Git - llvm/commitdiff
[RISCV] Reset NoPHIS MachineFunctionProperty in emitSelectPseudo
authorAlex Bradbury <asb@lowrisc.org>
Thu, 18 Jul 2019 07:52:41 +0000 (07:52 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Thu, 18 Jul 2019 07:52:41 +0000 (07:52 +0000)
We insered PHIS were there were none before, so the property must be
reset. This error was found on an EXPENSIVE_CHECKS build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366412 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/RISCV/RISCVISelLowering.cpp

index 5d8a2b0a65009b0af02a4f90558d48812a0bb218..ce7b85911ab655bc14efd6c216a429b9be91341f 100644 (file)
@@ -1308,6 +1308,7 @@ static MachineBasicBlock *emitSelectPseudo(MachineInstr &MI,
     SelectMBBI = Next;
   }
 
+  F->getProperties().reset(MachineFunctionProperties::Property::NoPHIs);
   return TailMBB;
 }