diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2019-10-09 12:53:17 +0200 |
---|---|---|
committer | Nicolai Hähnle <nhaehnle@gmail.com> | 2019-11-16 11:35:34 +0100 |
commit | d8f7c68e28bd0b8eb49f752bd7d26aa767c0b078 (patch) | |
tree | 7b5cb592b5b36adcae5a0fa546abe46f94fe6948 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | cf6cf0cd147ac2524c3533fd7c7ada7f95f6da60 (diff) | |
download | llvm-d8f7c68e28bd0b8eb49f752bd7d26aa767c0b078.zip llvm-d8f7c68e28bd0b8eb49f752bd7d26aa767c0b078.tar.gz llvm-d8f7c68e28bd0b8eb49f752bd7d26aa767c0b078.tar.bz2 |
AMDGPU/SILoadStoreOptimizer: fix a likely bug introduced recently
Summary:
We should check for same instruction class before checking whether they
have the same base address, else we might iterate out of bounds of a
MachineInstr operands list. The InstClass check is also cheaper.
This was introduced in SVN r373630.
Reviewers: tstellar
Subscribers: arsenm, kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68690
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions