aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
authorPetar Avramovic <Petar.Avramovic@amd.com>2023-03-08 16:18:56 +0100
committerPetar Avramovic <Petar.Avramovic@amd.com>2023-03-09 10:52:44 +0100
commit5e56d5999914538c8060e4fd9b23ec19650eebce (patch)
tree5ce0e228512db6d450fbd56ffb42d03321bb47ae /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
parentb2c48559c882fd558f91e471c4d23ea7b0c6e718 (diff)
downloadllvm-5e56d5999914538c8060e4fd9b23ec19650eebce.zip
llvm-5e56d5999914538c8060e4fd9b23ec19650eebce.tar.gz
llvm-5e56d5999914538c8060e4fd9b23ec19650eebce.tar.bz2
Fix SGPR + offset Scratch offset folding
Values in SGPR register are treated as unsigned by hardware. When value in 32-bit SGPR base can be negative calculate offset using 32-bit add instruction, otherwise use sgpr base(unsigned) + offset. Does not affect case where whole offset comes from SGPR register (immediate offset is 0). LoopStrengthReduce.cpp changes offsets to negative and in some iterations value in SGPR register could be negative. Differential Revision: https://reviews.llvm.org/D144955
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions