]> granicus.if.org Git - llvm/commit
[NVPTX] Lower integer absolute value idiom to abs instruction.
authorJustin Lebar <jlebar@google.com>
Wed, 18 Jan 2017 00:08:44 +0000 (00:08 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 18 Jan 2017 00:08:44 +0000 (00:08 +0000)
commitf78819e87fb5e210d95eb89a751ab3335138020f
treea003aa2cf2b7b9560ceeceb6b253120796211344
parent38c1089801be5e11ee2725706afbc5850d92cfb1
[NVPTX] Lower integer absolute value idiom to abs instruction.

Summary: Previously we lowered it literally, to shifts and xors.

Reviewers: tra

Subscribers: jholewinski, llvm-commits

Differential Revision: https://reviews.llvm.org/D28722

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292303 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXInstrInfo.td
test/CodeGen/NVPTX/idioms.ll [new file with mode: 0644]