[all-commits] [llvm/llvm-project] 3e678c: [RISCV] Don't emit fractional VIDs with negative s...
Fraser Cormack via All-commits
all-commits at lists.llvm.org
Wed Apr 20 23:12:40 PDT 2022
Author: Fraser Cormack <fraser at codeplay.com>
Date: 2022-04-21 (Thu, 21 Apr 2022)
[RISCV] Don't emit fractional VIDs with negative steps
We can't shift-right negative numbers to divide them, so avoid emitting
such sequences. Use negative numerators as a proxy for this situation, since
the indices are always non-negative.
An alternative strategy could be to add a compiler flag to emit division
instructions, which would at least allow us to test the VID sequence
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D123796
More information about the All-commits