mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-02 07:32:52 +00:00
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:
parent
4391bb75ec
commit
2d4b60f3a4
@ -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