diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-07-20 16:07:04 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-07-20 16:07:04 +0000 |
commit | f084a5e81d7a0552dca2a144624812bb4547efd2 (patch) | |
tree | 7654a324c313ce87ad990eb477b892bb2762221f | |
parent | 6bf8eee2640ae927f6ed4a5729153e25d5a928b0 (diff) |
Using BIC for immediates needs an extra bump for its complexity to get
instruction selection to prefer it when possible. rdar://7903972
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108844 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/ARM/ARMInstrThumb2.td | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td index d082a6b4f8..8ba23763e9 100644 --- a/lib/Target/ARM/ARMInstrThumb2.td +++ b/lib/Target/ARM/ARMInstrThumb2.td @@ -1686,6 +1686,7 @@ let AddedComplexity = 1 in defm t2MVN : T2I_un_irs <0b0011, "mvn", UnOpFrag<(not node:$Src)>, 1, 1>; +let AddedComplexity = 1 in def : T2Pat<(and GPR:$src, t2_so_imm_not:$imm), (t2BICri GPR:$src, t2_so_imm_not:$imm)>; |