diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2012-07-17 18:54:11 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2012-07-17 18:54:11 +0000 |
| commit | e6a3b03ee05332a96f61c39759658bbab7bd6783 (patch) | |
| tree | cb6f2a64b62afaeb1227162fe7728f70b784277e /llvm/lib/Target/X86/X86ISelLowering.cpp | |
| parent | 831c1e081965ab860076d305e7a484b235b9a90e (diff) | |
| download | bcm5719-llvm-e6a3b03ee05332a96f61c39759658bbab7bd6783.tar.gz bcm5719-llvm-e6a3b03ee05332a96f61c39759658bbab7bd6783.zip | |
Back out r160101 and instead implement a dag combine to recover from instcombine transformation.
llvm-svn: 160387
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 4f642ec542a..e9c60ae14d4 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -11345,6 +11345,7 @@ bool X86TargetLowering::isLegalICmpImmediate(int64_t Imm) const { } bool X86TargetLowering::isLegalAddImmediate(int64_t Imm) const { + // Can also use sub to handle negated immediates. return Imm == (int32_t)Imm; } |

