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