mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Fix buildbot after cfc60730179042a93cb9cb338982e71d20707a24
Windows buildbots were not happy with using find_if + instructionsWithoutDebug. In cfc60730179042a9, instructionsWithoutDebug is not technically necessary. So, just iterate over the block directly. http://lab.llvm.org:8011/#/builders/127/builds/4732/steps/7/logs/stdio
This commit is contained in:
parent
c4d2d8a4de
commit
05fff88674
@ -625,13 +625,10 @@ bool CombinerHelper::isPredecessor(const MachineInstr &DefMI,
|
||||
if (&DefMI == &UseMI)
|
||||
return false;
|
||||
const MachineBasicBlock &MBB = *DefMI.getParent();
|
||||
auto NonDbgInsts =
|
||||
instructionsWithoutDebug(MBB.instr_begin(), MBB.instr_end());
|
||||
auto DefOrUse =
|
||||
find_if(NonDbgInsts, [&DefMI, &UseMI](const MachineInstr &MI) {
|
||||
return &MI == &DefMI || &MI == &UseMI;
|
||||
});
|
||||
if (DefOrUse == NonDbgInsts.end())
|
||||
auto DefOrUse = find_if(MBB, [&DefMI, &UseMI](const MachineInstr &MI) {
|
||||
return &MI == &DefMI || &MI == &UseMI;
|
||||
});
|
||||
if (DefOrUse == MBB.end())
|
||||
llvm_unreachable("Block must contain both DefMI and UseMI!");
|
||||
return &*DefOrUse == &DefMI;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user