[llvm] c4ccd6e - MachineSink: Remove unnecessary empty block check
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 14 15:46:25 PDT 2023
Author: Matt Arsenault
Date: 2023-07-14T18:46:18-04:00
New Revision: c4ccd6e3d295da69fa590d0fd1fd0b74a174ad1d
URL: https://github.com/llvm/llvm-project/commit/c4ccd6e3d295da69fa590d0fd1fd0b74a174ad1d
DIFF: https://github.com/llvm/llvm-project/commit/c4ccd6e3d295da69fa590d0fd1fd0b74a174ad1d.diff
LOG: MachineSink: Remove unnecessary empty block check
Added:
Modified:
llvm/lib/CodeGen/MachineSink.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp
index 07f2f6c2e8b014..3b0166ee139fc1 100644
--- a/llvm/lib/CodeGen/MachineSink.cpp
+++ b/llvm/lib/CodeGen/MachineSink.cpp
@@ -276,8 +276,6 @@ static bool blockPrologueInterferes(const MachineBasicBlock *BB,
const TargetRegisterInfo *TRI,
const TargetInstrInfo *TII,
const MachineRegisterInfo *MRI) {
- if (BB->begin() == End)
- return false; // no prologue
for (MachineBasicBlock::const_iterator PI = BB->getFirstNonPHI(); PI != End;
++PI) {
// Only check target defined prologue instructions
More information about the llvm-commits
mailing list