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:
parent
4a78bb776f
commit
b0534f0113
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user