[PATCH] D49761: [AMDGPU] Use AssumptionCacheTracker in the divrem32 expansion

Artem Tamazov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 25 07:48:01 PDT 2018


artem.tamazov accepted this revision.
artem.tamazov added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: test/CodeGen/AMDGPU/divrem24-assume.ll:31
+  %tmp = tail call i32 @llvm.amdgcn.workitem.id.x(), !range !0
+  %tmp2 = icmp ult i32 %arg1, 42
+  tail call void @llvm.assume(i1 %tmp2)
----------------
The usage of the Answer to the Ultimate Question of Life, the Universe, and Everything to resolve the divrem problem is definitely overkill ))


https://reviews.llvm.org/D49761





More information about the llvm-commits mailing list