[PATCH] D38378: Optimize {s,u}{add,sub}.with.overflow on ARM.
Javed Absar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 30 00:31:11 PDT 2017
javed.absar added inline comments.
================
Comment at: lib/Target/ARM/ARMBaseInstrInfo.cpp:2569
+ if ((CmpI->getOpcode() == ARM::CMPrr || CmpI->getOpcode() == ARM::t2CMPrr) &&
+ (OI->getOpcode() == ARM::ADDrr || OI->getOpcode() == ARM::t2ADDrr ||
+ OI->getOpcode() == ARM::ADDri || OI->getOpcode() == ARM::t2ADDri) &&
----------------
Did you mean t2ADDrr in second case? You have two conditions checking for ARM::ADDrr. Same wit ARM::ADDri
https://reviews.llvm.org/D38378
More information about the llvm-commits
mailing list