diff options
author | alex-t <alexander.timofeev@amd.com> | 2022-03-10 12:57:15 +0300 |
---|---|---|
committer | alex-t <alexander.timofeev@amd.com> | 2022-03-10 15:03:22 +0300 |
commit | d159b4444c880b8f42c4d507a49107535657be94 (patch) | |
tree | 0623b9515cb24a3840ca4673609cbca272adfd21 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | af98b0af6705df3859ee3c98525b57025d40d9e8 (diff) | |
download | llvm-d159b4444c880b8f42c4d507a49107535657be94.zip llvm-d159b4444c880b8f42c4d507a49107535657be94.tar.gz llvm-d159b4444c880b8f42c4d507a49107535657be94.tar.bz2 |
[AMDGPU] Enable divergence predicates for negative inline constant subtraction
We have a pattern that undo sub x, c -> add x, -c canonicalization since c is more likely
an inline immediate than -c. This patch enables it to select scalar or vector subtracion by the input node divergence.
Reviewed By: foad
Differential Revision: https://reviews.llvm.org/D121360
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions