diff options
author | Piotr Sobczak <Piotr.Sobczak@amd.com> | 2021-01-27 16:02:49 +0100 |
---|---|---|
committer | Piotr Sobczak <Piotr.Sobczak@amd.com> | 2021-01-28 08:49:21 +0100 |
commit | fc8e7411218c846386650cfba111b62827c71da0 (patch) | |
tree | 28eeb718f6e7ea8699810c72f7b8e606ae2b797c /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 0da15ea581297fe99b9fadcbbcb10f956f3286f2 (diff) | |
download | llvm-fc8e7411218c846386650cfba111b62827c71da0.zip llvm-fc8e7411218c846386650cfba111b62827c71da0.tar.gz llvm-fc8e7411218c846386650cfba111b62827c71da0.tar.bz2 |
[AMDGPU] Avoid an illegal operand in si-shrink-instructions
Before the patch it was possible to trigger a constant bus
violation when folding immediates into a shrunk instruction.
The patch adds a check to enforce the legality of the new operand.
Differential Revision: https://reviews.llvm.org/D95527
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions