Revert "BranchFolder: Assert on SSA functions"
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 27 Apr 2022 23:01:24 +0000 (19:01 -0400)
committerMatt Arsenault <arsenm2@gmail.com>
Wed, 27 Apr 2022 23:02:15 +0000 (19:02 -0400)
This reverts commit 6ff91d17d66da46572e97f9a0b042182762cbe9e.

llvm/lib/CodeGen/BranchFolding.cpp

index 5b5c743e3971ebecdbafbb81e0f6a1613b4af9ad..76f6a00b718e0413fa1878a85a4f91fcb62f823b 100644 (file)
@@ -119,8 +119,6 @@ bool BranchFolderPass::runOnMachineFunction(MachineFunction &MF) {
   if (skipFunction(MF.getFunction()))
     return false;
 
-  assert(!MF.getProperties().hasProperty(MachineFunctionProperties::Property::IsSSA));
-
   TargetPassConfig *PassConfig = &getAnalysis<TargetPassConfig>();
   // TailMerge can create jump into if branches that make CFG irreducible for
   // HW that requires structurized CFG.