[prev in list] [next in list] [prev in thread] [next in thread]
List: llvm-commits
Subject: [PATCH] D110890: [GlobalISel] Port the udiv -> mul by constant combine.
From: Amara Emerson via Phabricator via llvm-commits <llvm-commits () lists ! llvm ! org>
Date: 2021-09-30 23:04:28
Message-ID: NUEtzjj1RmCoZbpM_rx4HQ () geopod-ismtpd-6-0
[Download RAW message or body]
aemerson added a comment.
@arsenm @foad The `udiv.i64.ll` test has had an abort line put it because this patch \
causes a G_MULH of <2 x s64> to be generated which is currently not legalized for \
AMDGPU.
================
Comment at: llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp:4429
+/// of the divided value are known zero.
+static mu magicu(const APInt &d, unsigned LeadingZeros = 0) {
+ unsigned p;
----------------
This function currently copied but can be shared with the DAG, but I'm waiting for \
D98200 to land so we can put it in a common utils file.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110890/new/
https://reviews.llvm.org/D110890
_______________________________________________
llvm-commits mailing list
llvm-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic