R600/SI: Consider adjacent offsets in getLdStBaseRegImmOfs
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 30 Jul 2014 01:01:10 +0000 (01:01 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 30 Jul 2014 01:01:10 +0000 (01:01 +0000)
commit8ad24437bd7d84fc8ffc5e83d37bd67dc50733f0
tree957e6f1f3549bcb32912dd78a9f5a0df96849b18
parent278da370cef429cf32a8ae9e46116a0fff3f713a
R600/SI: Consider adjacent offsets in getLdStBaseRegImmOfs

We can treat ds_read2_* as a single offset if the offsets are adjacent.

No test since emission of read2 instructions for partially
aligned loads isn't implemented yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214269 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIInstrInfo.cpp