projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Disable ABS optimization for Thumb1 target, we don't have necessary instructions...
[oota-llvm.git]
/
lib
/
Target
/
ARM
/
ARMISelDAGToDAG.cpp
diff --git
a/lib/Target/ARM/ARMISelDAGToDAG.cpp
b/lib/Target/ARM/ARMISelDAGToDAG.cpp
index 8b34fa11f473d7e85a7e3c37c97298c88c3d7b72..5ee009c04c5b4aba72bdb962954cf5dbe6640014 100644
(file)
--- a/
lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/
lib/Target/ARM/ARMISelDAGToDAG.cpp
@@
-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;