diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-12-27 11:26:24 -0500 |
---|---|---|
committer | Matt Arsenault <arsenm2@gmail.com> | 2019-12-27 14:06:31 -0500 |
commit | 3213ce966b6b3395ba6a5f5d3ee7e17c7bd857ac (patch) | |
tree | 344c33aeb42af2a08efa41f3fef68a422ba2c544 /llvm/lib/CodeGen/TailDuplication.cpp | |
parent | 780d30660e965992cf10d390e8ff102e4bf82aa4 (diff) | |
download | bcm5719-llvm-3213ce966b6b3395ba6a5f5d3ee7e17c7bd857ac.tar.gz bcm5719-llvm-3213ce966b6b3395ba6a5f5d3ee7e17c7bd857ac.zip |
TailDuplication: Clear NoPHIs property
The early tail duplicator pass introduces new ones, so a MIR test that
infers no phis since there were none on the input would fail the
verifier after running.
Diffstat (limited to 'llvm/lib/CodeGen/TailDuplication.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TailDuplication.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TailDuplication.cpp b/llvm/lib/CodeGen/TailDuplication.cpp index 942877417bf..648bf48b7d1 100644 --- a/llvm/lib/CodeGen/TailDuplication.cpp +++ b/llvm/lib/CodeGen/TailDuplication.cpp @@ -60,6 +60,11 @@ public: EarlyTailDuplicate() : TailDuplicateBase(ID, true) { initializeEarlyTailDuplicatePass(*PassRegistry::getPassRegistry()); } + + MachineFunctionProperties getClearedProperties() const override { + return MachineFunctionProperties() + .set(MachineFunctionProperties::Property::NoPHIs); + } }; } // end anonymous namespace |