projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d2dddc
)
BranchFolder: Assert on SSA functions
author
Matt Arsenault
<Matthew.Arsenault@amd.com>
Mon, 25 Apr 2022 12:12:32 +0000
(08:12 -0400)
committer
Matt Arsenault
<arsenm2@gmail.com>
Wed, 27 Apr 2022 22:51:37 +0000
(18:51 -0400)
We probably should have the opposite of getRequiredProperties for this
llvm/lib/CodeGen/BranchFolding.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/BranchFolding.cpp
b/llvm/lib/CodeGen/BranchFolding.cpp
index
76f6a00
..
5b5c743
100644
(file)
--- 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.