diff options
author | Manman Ren <mren@apple.com> | 2012-08-02 19:37:32 +0000 |
---|---|---|
committer | Manman Ren <mren@apple.com> | 2012-08-02 19:37:32 +0000 |
commit | 127eea87d666ccc9fe7025f41148c33af0f8c84b (patch) | |
tree | 97b08e6625f5465adbdee33975e86a496bc85af8 /test/CodeGen/X86/vec_compare.ll | |
parent | 1de266be13c956f4af9566b000b67ef75454d0a8 (diff) | |
download | external_llvm-127eea87d666ccc9fe7025f41148c33af0f8c84b.zip external_llvm-127eea87d666ccc9fe7025f41148c33af0f8c84b.tar.gz external_llvm-127eea87d666ccc9fe7025f41148c33af0f8c84b.tar.bz2 |
X86 Peephole: fold loads to the source register operand if possible.
Add more comments and use early returns to reduce nesting in isLoadFoldable.
Also disable folding for V_SET0 to avoid introducing a const pool entry and
a const pool load.
rdar://10554090 and rdar://11873276
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161207 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_compare.ll')
-rw-r--r-- | test/CodeGen/X86/vec_compare.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/X86/vec_compare.ll b/test/CodeGen/X86/vec_compare.ll index 1e04f19..367dd27 100644 --- a/test/CodeGen/X86/vec_compare.ll +++ b/test/CodeGen/X86/vec_compare.ll @@ -14,8 +14,8 @@ define <4 x i32> @test1(<4 x i32> %A, <4 x i32> %B) nounwind { define <4 x i32> @test2(<4 x i32> %A, <4 x i32> %B) nounwind { ; CHECK: test2: ; CHECK: pcmp -; CHECK: pxor LCP -; CHECK: movdqa +; CHECK: pcmp +; CHECK: pxor ; CHECK: ret %C = icmp sge <4 x i32> %A, %B %D = sext <4 x i1> %C to <4 x i32> |