For PowerPC, there are 3 passes has disabled the machine verification.
PPCTargetMachine.cpp: addPass(&LiveVariablesID, false); PPCTargetMachine.cpp: addPass(createPPCEarlyReturnPass(), false); PPCTargetMachine.cpp: addPass(createPPCBranchSelectionPass(), false);
Three are 3 patches to fix the machine verification for PowerPC.
https://github.com/llvm/llvm-project/commit/782a4dd1a478e41857744b483b104b5e66857fbf is to fix the operand flag for ppc-early-ret pass.
https://github.com/llvm/llvm-project/commit/4bb0a1cb70732f16749df6d47fd85eb86d60f587 is to fix the liveness for ppc-expand-isel pass.
https://github.com/llvm/llvm-project/commit/302e11cd974255eafd80ee4fdf52054a00b3e4be is to fix 3 cases issues.
After upstream above 3 patches, all PowerPC pass can enable machine verification and all cases can be passes(enable EXPENSIVE_CHECKS).
This patch is to enable machine verification for above three passes.