Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

vedant-amd (Vedant Paranjape)
User

Projects

User does not belong to any projects.

User Details

User Since
Apr 23 2023, 11:26 PM (23 w, 1 d)

Recent Activity

Aug 24 2023

vedant-amd committed rG5a9a02f67b77: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet (authored by vedant-amd).
[SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet
Aug 24 2023, 10:48 PM · Restricted Project, Restricted Project
vedant-amd closed D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Aug 24 2023, 10:47 PM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Updated the commit message

Aug 24 2023, 10:45 PM · Restricted Project, Restricted Project
vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Aug 24 2023, 12:24 AM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Simplified expression handling code, and cleaned up other things

Aug 24 2023, 12:23 AM · Restricted Project, Restricted Project

Aug 22 2023

vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Rebased

Aug 22 2023, 4:02 AM · Restricted Project, Restricted Project
vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

ping !

Aug 22 2023, 3:33 AM · Restricted Project, Restricted Project

Aug 16 2023

vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

@efriedma I have fixed the SCEV part, it mostly seems correct. Also added the testcase with large add constant. Please take a look once ! thanks !

Aug 16 2023, 2:32 AM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

added empty line at end of file in a test case

Aug 16 2023, 2:31 AM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

updated with clang-format

Aug 16 2023, 2:28 AM · Restricted Project, Restricted Project
vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

I'm not sure why you're having so much trouble with the unequal shift math. The case of unequal shift amount is really just treating the shl as two shifts: one shift by an arbitrary amount, followed by one shift with shift amount equal to the ashr.

Aug 16 2023, 2:23 AM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Update the SCEV code and add a new testcase

Aug 16 2023, 2:23 AM · Restricted Project, Restricted Project

Aug 9 2023

vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

ping ping !!

Aug 9 2023, 1:28 AM · Restricted Project, Restricted Project

Aug 4 2023

vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Aug 4 2023, 1:38 AM · Restricted Project, Restricted Project
vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Aug 4 2023, 1:23 AM · Restricted Project, Restricted Project
vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Aug 4 2023, 1:18 AM · Restricted Project, Restricted Project

Aug 3 2023

vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Hey @efriedma Thanks for spotting the bug, I updated the SCEV for case when m > n, it seems to be correct now. Can you please review the patch, thanks !

Aug 3 2023, 2:41 AM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Fixed issue with generated SCEV for ShlAmt > AshrAmt

Aug 3 2023, 2:37 AM · Restricted Project, Restricted Project
vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Aug 3 2023, 1:03 AM · Restricted Project, Restricted Project

Jul 31 2023

vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Hey @nikic and @efriedma Sorry for the ping again, but I have addressed all the comments (added the testcases as well), can you please review once again, it's been stuck since a long time. Thanks for your time.

Jul 31 2023, 8:31 PM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Updated LSR testcase and added new testcases for AShr SCEV model

Jul 31 2023, 8:29 PM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Rebase

Jul 31 2023, 2:51 AM · Restricted Project, Restricted Project
vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

ping !! @nikic can you take a look at this, thanks !

Jul 31 2023, 2:50 AM · Restricted Project, Restricted Project
vedant-amd added a comment to D156304: [LoopAccessAnalysis] Add a const qualifier to getMaxSafeDepDistBytes().

LGTM, please add NFC to the patch title.

Jul 31 2023, 2:49 AM · Restricted Project, Restricted Project
vedant-amd committed rG259d56d41d66: [LoopAccessAnalysis] Add a const qualifier to getMaxSafeDepDistBytes() (authored by vedant-amd).
[LoopAccessAnalysis] Add a const qualifier to getMaxSafeDepDistBytes()
Jul 31 2023, 2:45 AM · Restricted Project, Restricted Project
vedant-amd closed D156304: [LoopAccessAnalysis] Add a const qualifier to getMaxSafeDepDistBytes().
Jul 31 2023, 2:45 AM · Restricted Project, Restricted Project
vedant-amd added a comment to D156304: [LoopAccessAnalysis] Add a const qualifier to getMaxSafeDepDistBytes().

ping @fhahn , @sdesmalen can you please review this once ? Thanks !

Jul 31 2023, 1:58 AM · Restricted Project, Restricted Project

Jul 27 2023

vedant-amd added a comment to D156304: [LoopAccessAnalysis] Add a const qualifier to getMaxSafeDepDistBytes().

ping !

Jul 27 2023, 9:04 PM · Restricted Project, Restricted Project

Jul 26 2023

vedant-amd updated the summary of D156304: [LoopAccessAnalysis] Add a const qualifier to getMaxSafeDepDistBytes().
Jul 26 2023, 3:02 AM · Restricted Project, Restricted Project
vedant-amd requested review of D156304: [LoopAccessAnalysis] Add a const qualifier to getMaxSafeDepDistBytes().
Jul 26 2023, 2:59 AM · Restricted Project, Restricted Project

Jul 14 2023

vedant-amd added a comment to D155275: [SLP] Set ExtendingManyInputs argument of addMask based on size of InVectors (PR63668).

Hi, thanks for the patch, but it is not quite correct. I going to commit a fix in a few minutes with your test (just need to fix assertion check, actually)

Jul 14 2023, 6:34 AM · Restricted Project, Restricted Project
vedant-amd updated the diff for D155275: [SLP] Set ExtendingManyInputs argument of addMask based on size of InVectors (PR63668).

Updated patch after running through clang-format

Jul 14 2023, 6:00 AM · Restricted Project, Restricted Project
vedant-amd added reviewers for D155275: [SLP] Set ExtendingManyInputs argument of addMask based on size of InVectors (PR63668): ABataev, fhahn, nikic.
Jul 14 2023, 1:58 AM · Restricted Project, Restricted Project
vedant-amd requested review of D155275: [SLP] Set ExtendingManyInputs argument of addMask based on size of InVectors (PR63668).
Jul 14 2023, 1:56 AM · Restricted Project, Restricted Project

Jun 15 2023

vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

updated code to shift right the AddConstant by ShlAmt and flip add, trunc exprs

Jun 15 2023, 11:55 PM · Restricted Project, Restricted Project

Jun 14 2023

vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 14 2023, 5:05 AM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

updated code to shift right the AddConstant by ShlAmt and flip add, trunc exprs

Jun 14 2023, 5:05 AM · Restricted Project, Restricted Project
vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 14 2023, 4:49 AM · Restricted Project, Restricted Project

Jun 13 2023

vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 13 2023, 11:54 PM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

removed restriction on shift amount and the corresponding test case

Jun 13 2023, 11:18 PM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

updated failing testcase in LSR

Jun 13 2023, 10:36 PM · Restricted Project, Restricted Project
vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

You have to update that file anyway. Pre-commit builds are clearly failing.

Right, is it fine if I mark the test case as XFAIL for now ?

No, you need to regenerate the test by running the update_test_checks.py script.

Jun 13 2023, 10:35 PM · Restricted Project, Restricted Project

Jun 12 2023

vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

You have to update that file anyway. Pre-commit builds are clearly failing.

Jun 12 2023, 11:32 PM · Restricted Project, Restricted Project
vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Ping ! I didn't add the LSR failing testcase fix here, because I honestly don't know if it uncovered a bug, or it's a valid transformation in LSR.

Jun 12 2023, 10:45 PM · Restricted Project, Restricted Project
vedant-amd updated subscribers of D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 12 2023, 10:43 PM · Restricted Project, Restricted Project

Jun 11 2023

vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

You should update checks in loopstrengthreduce::scaling-factor-incompat-type.ll

Jun 11 2023, 7:56 PM · Restricted Project, Restricted Project

Jun 10 2023

vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

I assume the motivation for this is the following InstCombine transform? https://llvm.godbolt.org/z/zd63TWKbW I don't think we can change that canonicalization, so undoing it in SCEV is fine.

Hey @nikic, I did refactor the change, please take a look, all the SCEV test cases do pass with it. It look correct functionally.

Jun 10 2023, 10:35 PM · Restricted Project, Restricted Project

Jun 9 2023

vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

I assume the motivation for this is the following InstCombine transform? https://llvm.godbolt.org/z/zd63TWKbW I don't think we can change that canonicalization, so undoing it in SCEV is fine.

Jun 9 2023, 2:54 AM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Refactored code to reuse ashr + shl handling code

Jun 9 2023, 2:52 AM · Restricted Project, Restricted Project
vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

I assume the motivation for this is the following InstCombine transform? https://llvm.godbolt.org/z/zd63TWKbW I don't think we can change that canonicalization, so undoing it in SCEV is fine.

Jun 9 2023, 1:37 AM · Restricted Project, Restricted Project
vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 9 2023, 1:35 AM · Restricted Project, Restricted Project

Jun 8 2023

vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

updated using clang-format

Jun 8 2023, 10:55 PM · Restricted Project, Restricted Project
vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Hey @efriedma , I have made the requested changes (and replied to the questions). Please let me know if anything more needs to be done. Thanks !

Jun 8 2023, 10:50 PM · Restricted Project, Restricted Project
vedant-amd added a reviewer for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet: efriedma.
Jun 8 2023, 10:49 PM · Restricted Project, Restricted Project
vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 8 2023, 10:48 PM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Added check to make sure AddConstant isn't nullptr and few other changes.

Jun 8 2023, 10:46 PM · Restricted Project, Restricted Project
vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 8 2023, 10:29 PM · Restricted Project, Restricted Project
vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 8 2023, 10:21 PM · Restricted Project, Restricted Project
vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 8 2023, 9:58 PM · Restricted Project, Restricted Project
vedant-amd updated the diff for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Updated unit test to remove ret undefs

Jun 8 2023, 9:55 PM · Restricted Project, Restricted Project
vedant-amd added inline comments to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 8 2023, 9:40 PM · Restricted Project, Restricted Project
vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Hey @fhahn @nikic @mkazantsev can you please review this patch, I stumbled upon this while working on a bug in LSR, this patch does fail one of the unit test-case (scaling-factor-incompat-type.ll) in LSR. I believe that might be an effect of SCEV of this AShr pattern being computed, as LSR generally does do some optimizations based on the Shl + Add + AShr instructions.

Jun 8 2023, 1:11 PM · Restricted Project, Restricted Project

Jun 6 2023

vedant-amd added a comment to D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.

Hey @fhahn @nikic @mkazantsev can you please review this patch, I stumbled upon this while working on a bug in LSR, this patch does fail one of the unit test-case (scaling-factor-incompat-type.ll) in LSR. I believe that might be an effect of SCEV of this AShr pattern being computed, as LSR generally does do some optimizations based on the Shl + Add + AShr instructions.

Jun 6 2023, 8:31 AM · Restricted Project, Restricted Project
vedant-amd updated the summary of D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 6 2023, 8:21 AM · Restricted Project, Restricted Project
vedant-amd updated the summary of D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 6 2023, 8:20 AM · Restricted Project, Restricted Project
vedant-amd updated the summary of D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 6 2023, 8:19 AM · Restricted Project, Restricted Project
vedant-amd updated the summary of D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 6 2023, 8:19 AM · Restricted Project, Restricted Project
vedant-amd added reviewers for D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet: fhahn, nikic, mkazantsev.
Jun 6 2023, 8:17 AM · Restricted Project, Restricted Project
vedant-amd requested review of D152278: [SCEV] Compute SCEV for ashr(add(shl(x, n), c), m) instr triplet.
Jun 6 2023, 8:14 AM · Restricted Project, Restricted Project

May 9 2023

vedant-amd added a comment to D149130: [PartialInlining] Fix incorrect costing when IR has unreachable BBs.

LGTM, thanks!

May 9 2023, 5:20 AM · Restricted Project, Restricted Project
vedant-amd committed rG438e1cff7bfb: [PartialInlining] Fix incorrect costing when IR has unreachable BBs (authored by vedant-amd).
[PartialInlining] Fix incorrect costing when IR has unreachable BBs
May 9 2023, 4:59 AM · Restricted Project, Restricted Project
vedant-amd closed D149130: [PartialInlining] Fix incorrect costing when IR has unreachable BBs.
May 9 2023, 4:59 AM · Restricted Project, Restricted Project

May 8 2023

vedant-amd added a comment to D149130: [PartialInlining] Fix incorrect costing when IR has unreachable BBs.

It looks like clang-format failed in the pre-commit tests. Could you please make sure the diff is properly formatted by running clang-format-diff?

May 8 2023, 11:31 AM · Restricted Project, Restricted Project
vedant-amd updated the diff for D149130: [PartialInlining] Fix incorrect costing when IR has unreachable BBs.

Run clang-format-diff on the code

May 8 2023, 11:30 AM · Restricted Project, Restricted Project

May 5 2023

vedant-amd added a comment to D149130: [PartialInlining] Fix incorrect costing when IR has unreachable BBs.

Hey @fhahn @jdoerfert Sorry for the delay, but I have updated the patch to reflect your requested changes. Please let me know if it looks okay ?

May 5 2023, 3:11 AM · Restricted Project, Restricted Project
vedant-amd updated the diff for D149130: [PartialInlining] Fix incorrect costing when IR has unreachable BBs.

Removed pass wide unreachable block elimination added a depth_first approach to iterate over basic blocks

May 5 2023, 3:09 AM · Restricted Project, Restricted Project

Apr 27 2023

vedant-amd committed rGcf9b3e55a213: [IVDescriptors] Add assert to isInductionPhi to check for invalid Phis (authored by vedant-amd).
[IVDescriptors] Add assert to isInductionPhi to check for invalid Phis
Apr 27 2023, 10:30 PM · Restricted Project, Restricted Project
vedant-amd closed D149041: [IVDescriptors] Add assert to isInductionPhi to check for invalid Phis.
Apr 27 2023, 10:29 PM · Restricted Project, Restricted Project

Apr 25 2023

vedant-amd added a comment to D149130: [PartialInlining] Fix incorrect costing when IR has unreachable BBs.

If the block is unreachable, how come it is even considered for outlining?

Apr 25 2023, 8:42 PM · Restricted Project, Restricted Project
vedant-amd added a comment to D149130: [PartialInlining] Fix incorrect costing when IR has unreachable BBs.

Generally, I don't believe we should run elimination in all passes.
Instead, use the dominance tree to walk the blocks of a function, or walk it by manually following the control edges.

Apr 25 2023, 8:41 PM · Restricted Project, Restricted Project
vedant-amd added a comment to D149041: [IVDescriptors] Add assert to isInductionPhi to check for invalid Phis.

Hey @fhahn I don't have rights to commit this myself, can you commit it on my behalf ? (or give me commit access? edit: I have mailed chris, as per the docs) Thanks !

Apr 25 2023, 8:22 PM · Restricted Project, Restricted Project
vedant-amd added a comment to D149130: [PartialInlining] Fix incorrect costing when IR has unreachable BBs.

If the block is unreachable, how come it is even considered for outlining?

Apr 25 2023, 8:10 PM · Restricted Project, Restricted Project
vedant-amd added reviewers for D149130: [PartialInlining] Fix incorrect costing when IR has unreachable BBs: davidxl, fhahn.
Apr 25 2023, 12:49 AM · Restricted Project, Restricted Project
vedant-amd requested review of D149130: [PartialInlining] Fix incorrect costing when IR has unreachable BBs.
Apr 25 2023, 12:38 AM · Restricted Project, Restricted Project

Apr 24 2023

vedant-amd added reviewers for D149041: [IVDescriptors] Add assert to isInductionPhi to check for invalid Phis: fhahn, jdoerfert.
Apr 24 2023, 12:08 AM · Restricted Project, Restricted Project

Apr 23 2023

vedant-amd updated the diff for D149041: [IVDescriptors] Add assert to isInductionPhi to check for invalid Phis.

Removed whitespaces

Apr 23 2023, 11:46 PM · Restricted Project, Restricted Project
vedant-amd updated the diff for D149041: [IVDescriptors] Add assert to isInductionPhi to check for invalid Phis.

run clang-format

Apr 23 2023, 11:42 PM · Restricted Project, Restricted Project
vedant-amd updated the diff for D149041: [IVDescriptors] Add assert to isInductionPhi to check for invalid Phis.

minor fix to commit message

Apr 23 2023, 11:42 PM · Restricted Project, Restricted Project
vedant-amd requested review of D149041: [IVDescriptors] Add assert to isInductionPhi to check for invalid Phis.
Apr 23 2023, 11:40 PM · Restricted Project, Restricted Project