diff options
| author | Changpeng Fang <changpeng.fang@gmail.com> | 2018-05-11 22:17:57 +0000 |
|---|---|---|
| committer | Changpeng Fang <changpeng.fang@gmail.com> | 2018-05-11 22:17:57 +0000 |
| commit | f094885a9ea4d20873ba86f4e57fb73f1cf1a797 (patch) | |
| tree | 633271399065d946319f682adffdd15f0d6fa4db /llvm/lib | |
| parent | a17d627abbf9bf3825770a7d0afc89785954b6f5 (diff) | |
| download | bcm5719-llvm-f094885a9ea4d20873ba86f4e57fb73f1cf1a797.tar.gz bcm5719-llvm-f094885a9ea4d20873ba86f4e57fb73f1cf1a797.zip | |
AMDGPU/SI: Don't promote alloca to vector for AddrSpaceCast instruction.
Summary:
We have no logic to promote alloca to vector for an AddrSpaceCast instruction.
Reviewer:
arsenm
Differential Revision:
https://reviews.llvm.org/D45993
llvm-svn: 332147
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp b/llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp index 336467af06d..7d28c3c8259 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp @@ -328,7 +328,6 @@ static bool canVectorizeInst(Instruction *Inst, User *User) { return isa<GetElementPtrInst>(LI->getPointerOperand()) && !LI->isVolatile(); } case Instruction::BitCast: - case Instruction::AddrSpaceCast: return true; case Instruction::Store: { // Must be the stored pointer operand, not a stored value, plus |

