[Alignment] Use 'previous()' method instead of scalar division
authorGuillaume Chatelet <gchatelet@google.com>
Mon, 20 Jun 2022 09:33:09 +0000 (09:33 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Mon, 20 Jun 2022 11:01:43 +0000 (11:01 +0000)
commit03036061c7716f88cef32ebe16f2c10307383ef8
tree67bd6c8f920e2577ee0f26f75f7bcb421dc4d85c
parent1f9f7a2f5d75dd7b1a361a9e22138c98fcdc532b
[Alignment] Use 'previous()' method instead of scalar division

This is in preparation of integration with D128052.

Differential Revision: https://reviews.llvm.org/D128169
llvm/include/llvm/Support/Alignment.h
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/unittests/Support/AlignmentTest.cpp