Skip to content

Commit ef7f8a8

Browse files
committed
fix failure after rebase
1 parent 386adce commit ef7f8a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ConditionalCompares.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ MachineInstr *SSACCmpConv::findConvertibleCompare(MachineBasicBlock *MBB) {
253253
if (I == MBB->end())
254254
return nullptr;
255255
// The terminator must be controlled by the flags.
256-
if (!I->readsRegister(X86::EFLAGS)) {
256+
if (!I->readsRegister(X86::EFLAGS, TRI)) {
257257
++NumCmpTermRejs;
258258
LLVM_DEBUG(dbgs() << "Flags not used by terminator: " << *I);
259259
return nullptr;

0 commit comments

Comments
 (0)