diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2022-04-22 19:15:58 -0400 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2022-06-01 21:14:49 -0400 |
commit | 4cb722acbccd161bdcde49102bc9645587b808ae (patch) | |
tree | 3ada24bce35ca563827a7b1f75ee3fd8e5915b14 /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | 09a539e926c016f947383be4b0bb18e4a5aa94d6 (diff) | |
download | llvm-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.cpp | 5 |
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 |