We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 386adce commit ef7f8a8Copy full SHA for ef7f8a8
llvm/lib/Target/X86/X86ConditionalCompares.cpp
@@ -253,7 +253,7 @@ MachineInstr *SSACCmpConv::findConvertibleCompare(MachineBasicBlock *MBB) {
253
if (I == MBB->end())
254
return nullptr;
255
// The terminator must be controlled by the flags.
256
- if (!I->readsRegister(X86::EFLAGS)) {
+ if (!I->readsRegister(X86::EFLAGS, TRI)) {
257
++NumCmpTermRejs;
258
LLVM_DEBUG(dbgs() << "Flags not used by terminator: " << *I);
259
0 commit comments