diff options
author | Petar Avramovic <Petar.Avramovic@amd.com> | 2023-03-08 17:06:29 +0100 |
---|---|---|
committer | Petar Avramovic <Petar.Avramovic@amd.com> | 2023-03-09 10:53:41 +0100 |
commit | ded69779be05e1122dbbb5fecc5802bfc9187310 (patch) | |
tree | b8760b36d4394575191357a022f7baa429ee6374 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | |
parent | 3ae310d0ae3452c7384736c7f8542ee3d1e0f4fd (diff) | |
download | llvm-ded69779be05e1122dbbb5fecc5802bfc9187310.zip llvm-ded69779be05e1122dbbb5fecc5802bfc9187310.tar.gz llvm-ded69779be05e1122dbbb5fecc5802bfc9187310.tar.bz2 |
Fix SGPR + VGPR + offset Scratch offset folding
Values in SGPR and VGPR register are treated as unsigned by hardware.
When value in 32-bit SGPR or VGPR base can be negative calculate offset
using 32-bit add instructions, otherwise use
sgpr(unsigned) + vgpr(unsigned) + offset.
LoopStrengthReduce.cpp changes offsets to negative and in some
iterations value in SGPR or VGPR register could be negative.
Differential Revision: https://reviews.llvm.org/D144957
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions