1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

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

llvm-svn: 141481
This commit is contained in:
Anton Korobeynikov 2011-10-08 08:38:45 +00:00
parent 4a78bb776f
commit b0534f0113

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;