Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 23, 2022
1 parent 5071ee4 commit 1261eaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taichi/codegen/llvm/struct_llvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ void StructCompilerLLVM::generate_refine_coordinates(SNode *snode) {
auto prev = tlctx_->get_constant(snode->extractors[i].acc_shape *
snode->extractors[i].shape);
auto next = tlctx_->get_constant(snode->extractors[i].acc_shape);
// Use UDiv/URem instead of SDiv/SRem so that LLVM can optimize them
// into bitwise operations when the divisor is a power of two.
// Use UDiv/URem instead of SDiv/SRem so that LLVM can optimize them
// into bitwise operations when the divisor is a power of two.
addition = builder.CreateUDiv(builder.CreateURem(l, prev), next);
}
auto in = call(&builder, "PhysicalCoordinates_get_val", inp_coords,
Expand Down

0 comments on commit 1261eaa

Please sign in to comment.