diff options
author | Mats Petersson <mats.petersson@arm.com> | 2023-06-01 11:39:26 +0100 |
---|---|---|
committer | Mats Petersson <mats.petersson@arm.com> | 2023-06-01 19:29:57 +0100 |
commit | b812932b3582752eb45240044be8ac1a9df4759f (patch) | |
tree | 68727560133da08cc8c1db8f34d4d7040363d691 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 8dc13957cb1752b6a90e299d016e09bb98b0df54 (diff) | |
download | llvm-b812932b3582752eb45240044be8ac1a9df4759f.zip llvm-b812932b3582752eb45240044be8ac1a9df4759f.tar.gz llvm-b812932b3582752eb45240044be8ac1a9df4759f.tar.bz2 |
[FLANG] Change loop versioning to use shift instead of divide
Despite me being convinced that the use of divide didn't produce any
divide instructions, it does in fact add more instructions than using
a plain shift operation.
This patch simply changes the divide to a shift right, with an
assert to check that the "divisor" is a power of two.
Reviewed By: kiranchandramohan, tblah
Differential Revision: https://reviews.llvm.org/D151880
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions