aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2022-04-22 19:15:58 -0400
committerMatt Arsenault <Matthew.Arsenault@amd.com>2022-06-01 21:14:49 -0400
commit4cb722acbccd161bdcde49102bc9645587b808ae (patch)
tree3ada24bce35ca563827a7b1f75ee3fd8e5915b14 /llvm/lib/CodeGen/BranchFolding.cpp
parent09a539e926c016f947383be4b0bb18e4a5aa94d6 (diff)
downloadllvm-4cb722acbccd161bdcde49102bc9645587b808ae.zip
llvm-4cb722acbccd161bdcde49102bc9645587b808ae.tar.gz
llvm-4cb722acbccd161bdcde49102bc9645587b808ae.tar.bz2
BranchFolder: Require NoPHIs
The pass doesn't handle SSA and breaks any phis.
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index 76f6a00..07be03d 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/lib/CodeGen/BranchFolding.cpp
@@ -104,6 +104,11 @@ namespace {
AU.addRequired<TargetPassConfig>();
MachineFunctionPass::getAnalysisUsage(AU);
}
+
+ MachineFunctionProperties getRequiredProperties() const override {
+ return MachineFunctionProperties().set(
+ MachineFunctionProperties::Property::NoPHIs);
+ }
};
} // end anonymous namespace