Disable ABS optimization for Thumb1 target, we don't have necessary instructions there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141481 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Anton Korobeynikov 2011-10-08 08:38:45 +00:00
parent 4391bb75ec
commit 2d4b60f3a4

View File

@ -2322,6 +2322,9 @@ SDNode *ARMDAGToDAGISel::SelectABSOp(SDNode *N){
if (DisableARMIntABS)
return NULL;
if (Subtarget->isThumb1Only())
return NULL;
if (XORSrc0.getOpcode() != ISD::ADD ||
XORSrc1.getOpcode() != ISD::SRA)
return NULL;