[llvm-commits] [llvm] r141481 - /llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sat Oct 8 01:38:45 PDT 2011
Author: asl
Date: Sat Oct 8 03:38:45 2011
New Revision: 141481
URL: http://llvm.org/viewvc/llvm-project?rev=141481&view=rev
Log:
Disable ABS optimization for Thumb1 target, we don't have necessary instructions there.
Modified:
llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp?rev=141481&r1=141480&r2=141481&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelDAGToDAG.cpp Sat Oct 8 03:38:45 2011
@@ -2322,6 +2322,9 @@
if (DisableARMIntABS)
return NULL;
+ if (Subtarget->isThumb1Only())
+ return NULL;
+
if (XORSrc0.getOpcode() != ISD::ADD ||
XORSrc1.getOpcode() != ISD::SRA)
return NULL;
More information about the llvm-commits
mailing list