diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-07 22:42:18 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-08 10:11:26 +0200 |
commit | 5fa87ec004fd8a493ee6799ee5ba81b1c82daf19 (patch) | |
tree | 3752362e1cc1d8fc2902850e727a2441de73d19d /llvm/lib/Support/CachePruning.cpp | |
parent | 568787f81e07d82cf0f1ad1c9cb61eb04a12dcfb (diff) | |
download | llvm-5fa87ec004fd8a493ee6799ee5ba81b1c82daf19.zip llvm-5fa87ec004fd8a493ee6799ee5ba81b1c82daf19.tar.gz llvm-5fa87ec004fd8a493ee6799ee5ba81b1c82daf19.tar.bz2 |
[AMDGPU] Try to determine sign bit during div/rem expansion
This is preparation for D79294, which removes an expensive
InstSimplify optimization, on the assumption that it will be
picked up by InstCombine instead. Of course, this does not hold
up if a backend performs non-trivial IR expansions without running
a canonicalization pipeline afterwards, which turned up as an
issue in the context of AMDGPU div/rem expansion.
This patch mitigates the issue by explicitly performing a known
bits calculation where it matters. No test changes, as those would
only be visible after the other patch lands.
Differential Revision: https://reviews.llvm.org/D79596
Diffstat (limited to 'llvm/lib/Support/CachePruning.cpp')
0 files changed, 0 insertions, 0 deletions