LegalizeDAG: Move unaligned load/store expansion to TLI
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 21 Apr 2016 18:19:11 +0000 (18:19 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 21 Apr 2016 18:19:11 +0000 (18:19 +0000)
commit7846d885edd171155a83b6b76c2b9d3c3970f3c4
tree4345417d224bb66ee0a83eb9cec9965bbeeaecf1
parent0e97e036d3dd0f55bf1bd3a0bc2c69ed438fbba5
LegalizeDAG: Move unaligned load/store expansion to TLI

When custom lowered, this is not called if the store is custom
lowered. Move it to be a utility function so targets can
easily expand unaligned accesses when custom lowering.

llvm-svn: 267029
llvm/include/llvm/Target/TargetLowering.h
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp