diff options
author | Jay Foad <jay.foad@amd.com> | 2021-10-12 09:15:07 +0100 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2021-10-12 16:09:18 +0100 |
commit | f7ee21aa326fcd07448d5162daf66f3675ffa863 (patch) | |
tree | ceb712ee23c7ad191fa79de9074d7eb24df8c7a0 /llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | |
parent | 66e13c7f439cf162d7ed1d25883e71a5755ac7ec (diff) | |
download | llvm-f7ee21aa326fcd07448d5162daf66f3675ffa863.zip llvm-f7ee21aa326fcd07448d5162daf66f3675ffa863.tar.gz llvm-f7ee21aa326fcd07448d5162daf66f3675ffa863.tar.bz2 |
[TwoAddressInstruction] Remove ad hoc machine verification
With the -early-live-intervals command line flag,
TwoAddressInstructionPass::runOnMachineFunction would call
MachineFunction::verify before returning to check the live intervals.
But there was not much benefit to doing this since -verify-machineinstrs
and LLVM_ENABLE_EXPENSIVE_CHECKS provide a more general way of
scheduling machine verification after every pass.
Also it caused problems on targets like Lanai which are marked as "not
machine verifier clean", since verification would fail for known
target-specific problems which are nothing to do with LiveIntervals.
Differential Revision: https://reviews.llvm.org/D111618
Diffstat (limited to 'llvm/lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index 23e1685..461d25e3 100644 --- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -1742,9 +1742,6 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &Func) { } } - if (LIS) - MF->verify(this, "After two-address instruction pass"); - return MadeChange; } |