Allow misaligned stores in x86 fast-isel.
authorDerek Schuff <dschuff@google.com>
Thu, 18 Apr 2013 17:41:08 +0000 (17:41 +0000)
committerDerek Schuff <dschuff@google.com>
Thu, 18 Apr 2013 17:41:08 +0000 (17:41 +0000)
commit2061dcf0e4266c487185f1b3d8e23b93e2dd68fb
treef8fae2e562fa6d2839d321e4a7481e6724d746cc
parenta3fb330d05e85107d01ecf133355d0c6a88196fd
Allow misaligned stores in x86 fast-isel.

In X86FastISel::X86SelectStore(), improperly aligned stores are rejected and
handled by the DAG-based ISel.  However, X86FastISel::X86SelectLoad() makes
no such requirement.  There doesn't appear to be an x86 architectural
correctness issue with allowing potentially unaligned store instructions.
This patch removes this restriction.

Patch by Jim Stichnot.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/fast-isel-unaligned-store.ll [new file with mode: 0644]