diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2022-04-25 08:12:32 -0400 |
---|---|---|
committer | Matt Arsenault <arsenm2@gmail.com> | 2022-04-27 18:51:37 -0400 |
commit | 6ff91d17d66da46572e97f9a0b042182762cbe9e (patch) | |
tree | 25349e911af664285ec6d62a1dc3ca55a97db85c /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | 7d2dddce8f0d3ed896f1437b01a097cb7fd1bfe9 (diff) | |
download | llvm-6ff91d17d66da46572e97f9a0b042182762cbe9e.zip llvm-6ff91d17d66da46572e97f9a0b042182762cbe9e.tar.gz llvm-6ff91d17d66da46572e97f9a0b042182762cbe9e.tar.bz2 |
BranchFolder: Assert on SSA functions
We probably should have the opposite of getRequiredProperties for this
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 76f6a00..5b5c743 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -119,6 +119,8 @@ 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. |