Page MenuHomePhabricator

sanjoy (Sanjoy Das)
Engineering

Projects

User does not belong to any projects.

User Details

User Since
Jun 6 2014, 4:30 PM (460 w, 1 d)

Recent Activity

Thu, Mar 9

sanjoy added a comment to D83906: [CodeGen] Emit a call instruction instead of an invoke if the called llvm function is marked nounwind.

I just assume there are more devices out there that we don't know about or understand.

Thu, Mar 9, 3:14 PM · Restricted Project, Restricted Project

Jan 14 2023

sanjoy added a comment to D140821: [DRAFT] Generalize expand_shape to take shape as explicit input.

Thanks for the review! Replied to a few things inline as I continue to work on this.

Jan 14 2023, 10:02 PM · Restricted Project, Restricted Project

Jan 1 2023

sanjoy requested review of D140821: [DRAFT] Generalize expand_shape to take shape as explicit input.
Jan 1 2023, 10:16 AM · Restricted Project, Restricted Project

Nov 14 2022

sanjoy added inline comments to D137857: [mlir] Remove `Transforms/SideEffectUtils.h` and move the methods into `Interface/SideEffectInterfaces.h`..
Nov 14 2022, 3:46 PM · Restricted Project, Restricted Project
sanjoy requested changes to D137857: [mlir] Remove `Transforms/SideEffectUtils.h` and move the methods into `Interface/SideEffectInterfaces.h`..
Nov 14 2022, 2:32 PM · Restricted Project, Restricted Project
sanjoy added a comment to D137857: [mlir] Remove `Transforms/SideEffectUtils.h` and move the methods into `Interface/SideEffectInterfaces.h`..

Since hasNoEffect did not walk the op regions and isMemoryEffectFree does, I think with this change we have a couple of redundant checks on the attached regions.

Nov 14 2022, 2:31 PM · Restricted Project, Restricted Project

Nov 11 2022

sanjoy committed rGed39825be488: Model UB in integer division operations in the arith dialect (authored by sanjoy).
Model UB in integer division operations in the arith dialect
Nov 11 2022, 10:49 AM · Restricted Project, Restricted Project
sanjoy closed D137814: Model UB in integer division operations in the arith dialect.
Nov 11 2022, 10:49 AM · Restricted Project, Restricted Project
sanjoy updated the summary of D137814: Model UB in integer division operations in the arith dialect.
Nov 11 2022, 10:42 AM · Restricted Project, Restricted Project

Nov 10 2022

sanjoy added a reviewer for D137814: Model UB in integer division operations in the arith dialect: kuhar.
Nov 10 2022, 10:56 PM · Restricted Project, Restricted Project
sanjoy requested review of D137814: Model UB in integer division operations in the arith dialect.
Nov 10 2022, 10:55 PM · Restricted Project, Restricted Project

Oct 30 2022

sanjoy committed rG788390c1309c: Make scf.for and affine.for conditionally speculatable (authored by sanjoy).
Make scf.for and affine.for conditionally speculatable
Oct 30 2022, 4:25 PM · Restricted Project, Restricted Project
sanjoy closed D136376: Make scf.for and affine.for conditionally speculatable.
Oct 30 2022, 4:24 PM · Restricted Project, Restricted Project

Oct 28 2022

sanjoy added a comment to D136376: Make scf.for and affine.for conditionally speculatable.

Thanks to me looks good. But please have a look at the build status, as it is currently failing.

Oct 28 2022, 11:38 AM · Restricted Project, Restricted Project
sanjoy updated the diff for D136376: Make scf.for and affine.for conditionally speculatable.
  • Address review
Oct 28 2022, 11:11 AM · Restricted Project, Restricted Project

Oct 27 2022

sanjoy added a comment to D136376: Make scf.for and affine.for conditionally speculatable.

Friendly ping!

Oct 27 2022, 9:37 AM · Restricted Project, Restricted Project

Oct 24 2022

sanjoy committed rG49e2d361c90d: Add a document on side effects & speculation in MLIR (authored by sanjoy).
Add a document on side effects & speculation in MLIR
Oct 24 2022, 10:04 PM · Restricted Project, Restricted Project
sanjoy closed D136316: Add a document on side effects & speculation in MLIR.
Oct 24 2022, 10:03 PM · Restricted Project, Restricted Project
sanjoy added inline comments to D136316: Add a document on side effects & speculation in MLIR.
Oct 24 2022, 9:34 PM · Restricted Project, Restricted Project

Oct 21 2022

sanjoy added inline comments to D136376: Make scf.for and affine.for conditionally speculatable.
Oct 21 2022, 2:58 PM · Restricted Project, Restricted Project
sanjoy updated the diff for D136376: Make scf.for and affine.for conditionally speculatable.
  • Address review
Oct 21 2022, 2:57 PM · Restricted Project, Restricted Project

Oct 20 2022

sanjoy added inline comments to D136376: Make scf.for and affine.for conditionally speculatable.
Oct 20 2022, 8:20 PM · Restricted Project, Restricted Project
sanjoy updated the diff for D136316: Add a document on side effects & speculation in MLIR.
  • Add disclaimer about graph regions
Oct 20 2022, 5:36 PM · Restricted Project, Restricted Project
sanjoy added a comment to D136316: Add a document on side effects & speculation in MLIR.

Also we should link to this doc from other places (like the SideEffect interface doc).

Oct 20 2022, 5:32 PM · Restricted Project, Restricted Project
sanjoy updated the diff for D136316: Add a document on side effects & speculation in MLIR.
  • reformat
  • address review comments
Oct 20 2022, 5:31 PM · Restricted Project, Restricted Project
sanjoy updated the diff for D136376: Make scf.for and affine.for conditionally speculatable.
  • Use m_Constant
  • Change getConstantStep() to return APInt (that's more robust)
  • Refactor one obvious place in the code to use ForOp::getConstantStep()
Oct 20 2022, 5:20 PM · Restricted Project, Restricted Project
sanjoy added reviewers for D136376: Make scf.for and affine.for conditionally speculatable: rengolin, chelini.
Oct 20 2022, 1:46 PM · Restricted Project, Restricted Project
sanjoy requested review of D136376: Make scf.for and affine.for conditionally speculatable.
Oct 20 2022, 1:45 PM · Restricted Project, Restricted Project

Oct 19 2022

sanjoy added a reviewer for D136316: Add a document on side effects & speculation in MLIR: kuhar.
Oct 19 2022, 10:36 PM · Restricted Project, Restricted Project
sanjoy updated the diff for D136316: Add a document on side effects & speculation in MLIR.
  • Add note about Pure
Oct 19 2022, 10:36 PM · Restricted Project, Restricted Project
sanjoy added reviewers for D136316: Add a document on side effects & speculation in MLIR: silvas, zero9178, dcaballe, rriddle, jpienaar, mehdi_amini, mravishankar, lattner.
Oct 19 2022, 10:24 PM · Restricted Project, Restricted Project
sanjoy requested review of D136316: Add a document on side effects & speculation in MLIR.
Oct 19 2022, 10:22 PM · Restricted Project, Restricted Project

Oct 16 2022

sanjoy added a comment to D135505: Introduce a ConditionallySpeculatable op interface.

Did you consider something more explicit and less loaded with terminology baggage?

Oct 16 2022, 9:13 PM · Restricted Project, Restricted Project

Oct 13 2022

sanjoy committed rGdde9db5f9313: Unbreak Windows build (authored by sanjoy).
Unbreak Windows build
Oct 13 2022, 11:33 AM · Restricted Project, Restricted Project
sanjoy closed D135899: Unbreak Windows build.
Oct 13 2022, 11:32 AM · Restricted Project, Restricted Project
sanjoy added a comment to D135505: Introduce a ConditionallySpeculatable op interface.

Sent https://reviews.llvm.org/D135899 adding the llvm_unreachable.

Oct 13 2022, 11:12 AM · Restricted Project, Restricted Project
sanjoy requested review of D135899: Unbreak Windows build.
Oct 13 2022, 11:10 AM · Restricted Project, Restricted Project
sanjoy added a comment to D135505: Introduce a ConditionallySpeculatable op interface.

There is also a failure in the MLIR Windows bot. https://lab.llvm.org/buildbot/#/builders/13/builds/27028

C:\buildbot\mlir-x64-windows-ninja\llvm-project\mlir\lib\Transforms\Utils\SideEffectUtils.cpp(58) : error C2220: the following warning is treated as an error
C:\buildbot\mlir-x64-windows-ninja\llvm-project\mlir\lib\Transforms\Utils\SideEffectUtils.cpp(58) : warning C4715: 'mlir::isSpeculatable': not all control paths return a value
Oct 13 2022, 10:15 AM · Restricted Project, Restricted Project

Oct 12 2022

sanjoy committed rGadabce411859: Correctly model undefined behavior in {tensor|memref}.dim (authored by sanjoy).
Correctly model undefined behavior in {tensor|memref}.dim
Oct 12 2022, 5:30 PM · Restricted Project, Restricted Project
sanjoy closed D135748: Correctly model undefined behavior in {tensor|memref}.dim.
Oct 12 2022, 5:30 PM · Restricted Project, Restricted Project
sanjoy updated the diff for D135748: Correctly model undefined behavior in {tensor|memref}.dim.

Address review

Oct 12 2022, 5:25 PM · Restricted Project, Restricted Project
sanjoy added a reviewer for D135748: Correctly model undefined behavior in {tensor|memref}.dim: mravishankar.
Oct 12 2022, 3:32 PM · Restricted Project, Restricted Project
sanjoy added a comment to D135505: Introduce a ConditionallySpeculatable op interface.

Why this patch landed with obvious failures in the pre merge checks? https://buildkite.com/llvm-project/premerge-checks/builds/116406#0183ca8c-bc14-4314-9b1d-c764cf47e0aa

The premiere checks aren't "visible enough": I never notice them myself (I use to when they were posting the results in a comment initially).

Please revert if a fix forward isn't straightforward (should be a sed in flang I think?)

Fixed in e4ccba1598c07bc1fb6f3b73942dbc0a03fa51ed

Oct 12 2022, 12:23 PM · Restricted Project, Restricted Project
sanjoy abandoned D135800: Adapt flang to 86771d0b65ee (Introduce ConditionallySpeculatable).

Thanks @clementval!!

Oct 12 2022, 12:21 PM · Restricted Project, Restricted Project
sanjoy updated the diff for D135800: Adapt flang to 86771d0b65ee (Introduce ConditionallySpeculatable).
  • Fix a use of RecursiveSideEffects.
Oct 12 2022, 12:20 PM · Restricted Project, Restricted Project
sanjoy added a comment to D135505: Introduce a ConditionallySpeculatable op interface.

I didn't notice the failure either. A comment would be more visible.

Oct 12 2022, 12:17 PM · Restricted Project, Restricted Project
sanjoy requested review of D135800: Adapt flang to 86771d0b65ee (Introduce ConditionallySpeculatable).
Oct 12 2022, 11:20 AM · Restricted Project, Restricted Project
sanjoy committed rG86771d0b65ee: Introduce a ConditionallySpeculatable op interface (authored by sanjoy).
Introduce a ConditionallySpeculatable op interface
Oct 12 2022, 10:56 AM · Restricted Project, Restricted Project
sanjoy closed D135505: Introduce a ConditionallySpeculatable op interface.
Oct 12 2022, 10:56 AM · Restricted Project, Restricted Project
sanjoy retitled D135505: Introduce a ConditionallySpeculatable op interface from Make NoSideEffect allow undefined behavior; step 1/N to Introduce a ConditionallySpeculatable op interface.
Oct 12 2022, 10:32 AM · Restricted Project, Restricted Project
sanjoy added inline comments to D135748: Correctly model undefined behavior in {tensor|memref}.dim.
Oct 12 2022, 8:42 AM · Restricted Project, Restricted Project

Oct 11 2022

sanjoy requested review of D135748: Correctly model undefined behavior in {tensor|memref}.dim.
Oct 11 2022, 10:55 PM · Restricted Project, Restricted Project
sanjoy updated the diff for D135505: Introduce a ConditionallySpeculatable op interface.

Address review

Oct 11 2022, 9:54 PM · Restricted Project, Restricted Project

Oct 10 2022

sanjoy added a comment to D135505: Introduce a ConditionallySpeculatable op interface.

Technically the "safe" update is s/NoSideEffect /NoMemoryEffect/

(I agree that most of the time they want Pure instead)

Oct 10 2022, 6:10 PM · Restricted Project, Restricted Project
sanjoy resigned from D121950: [IndVars] Teach replaceCongruentIVs to avoid scrambling induction variables.
Oct 10 2022, 2:43 PM · Restricted Project, Restricted Project
sanjoy resigned from D123337: Possible bug in isKnownPredicateViaConstantRanges.
Oct 10 2022, 2:43 PM · Restricted Project, Restricted Project
sanjoy resigned from D125003: [RS4GC] Treat a value that has a single base and no derived inputs as base value.
Oct 10 2022, 2:42 PM · Restricted Project, Restricted Project
sanjoy added a comment to D135505: Introduce a ConditionallySpeculatable op interface.

I am indifferent about that, but do wonder whether it is somewhat out of scope for this patch and requires more discussion. It is renaming one of the (if not the) most used trait after all, and its not obvious for downstream users looking through the commit title that such a rename is required.

Oct 10 2022, 10:59 AM · Restricted Project, Restricted Project
sanjoy updated the diff for D135505: Introduce a ConditionallySpeculatable op interface.
  • Remove code that TableGen generates anyway
Oct 10 2022, 10:55 AM · Restricted Project, Restricted Project
sanjoy updated the diff for D135505: Introduce a ConditionallySpeculatable op interface.
  • remove stray whitespace
Oct 10 2022, 10:36 AM · Restricted Project, Restricted Project
sanjoy added a comment to D135505: Introduce a ConditionallySpeculatable op interface.

Where is this? I would have perhaps expected it in Rationale.md

Oct 10 2022, 8:40 AM · Restricted Project, Restricted Project
sanjoy updated the summary of D135505: Introduce a ConditionallySpeculatable op interface.
Oct 10 2022, 8:38 AM · Restricted Project, Restricted Project
sanjoy updated the diff for D135505: Introduce a ConditionallySpeculatable op interface.

Remove stray comment

Oct 10 2022, 8:38 AM · Restricted Project, Restricted Project

Oct 9 2022

sanjoy added a comment to D135505: Introduce a ConditionallySpeculatable op interface.

@zero9178: incorporated your suggestion, PTAL.

Oct 9 2022, 10:42 PM · Restricted Project, Restricted Project
sanjoy updated the diff for D135505: Introduce a ConditionallySpeculatable op interface.
  • fix comment
Oct 9 2022, 10:34 PM · Restricted Project, Restricted Project
sanjoy added inline comments to D135505: Introduce a ConditionallySpeculatable op interface.
Oct 9 2022, 10:34 PM · Restricted Project, Restricted Project
sanjoy updated the diff for D135505: Introduce a ConditionallySpeculatable op interface.

Addressed review comments:

Oct 9 2022, 10:33 PM · Restricted Project, Restricted Project
sanjoy added a comment to D135505: Introduce a ConditionallySpeculatable op interface.

Just making sure I understand -- are you saying that MemAlloc is speculatable but still needs a non-trivial MemoryEffect because it allocates memory? Now that I think of it, another such example is a load from a global variable. Since the global variable is deferenceable for the lifetime of the program, the load itself is speculatable, but we still need to model the read memory effect to make sure we don't reorder it with aliasing writes.

Oct 9 2022, 9:20 AM · Restricted Project, Restricted Project

Oct 7 2022

sanjoy updated the diff for D135505: Introduce a ConditionallySpeculatable op interface.
  • No need for extraClassDeclaration in always_speculatable_op
Oct 7 2022, 7:45 PM · Restricted Project, Restricted Project
sanjoy updated the summary of D135505: Introduce a ConditionallySpeculatable op interface.
Oct 7 2022, 7:05 PM · Restricted Project, Restricted Project
sanjoy updated the summary of D135505: Introduce a ConditionallySpeculatable op interface.
Oct 7 2022, 7:03 PM · Restricted Project, Restricted Project
sanjoy added a reviewer for D135505: Introduce a ConditionallySpeculatable op interface: mehdi_amini.
Oct 7 2022, 6:58 PM · Restricted Project, Restricted Project
sanjoy requested review of D135505: Introduce a ConditionallySpeculatable op interface.
Oct 7 2022, 6:57 PM · Restricted Project, Restricted Project

Feb 12 2022

sanjoy removed a reviewer for D119644: [X86][Win64] Avoid statepoints in trailing call position: sanjoy.
Feb 12 2022, 12:00 PM · Restricted Project

Jan 31 2022

sanjoy committed rG18e33ba9c94e: Remove `mutable` and stray comment (authored by sanjoy).
Remove `mutable` and stray comment
Jan 31 2022, 12:44 PM
sanjoy closed D118643: Remove `mutable` and stray comment.
Jan 31 2022, 12:44 PM · Restricted Project
sanjoy requested review of D118643: Remove `mutable` and stray comment.
Jan 31 2022, 12:26 PM · Restricted Project
sanjoy committed rG697a5036cd9b: Remove OpTrait, AttrTrait and TypeTrait (authored by sanjoy).
Remove OpTrait, AttrTrait and TypeTrait
Jan 31 2022, 11:04 AM
sanjoy closed D118543: Remove OpTrait, AttrTrait and TypeTrait.
Jan 31 2022, 11:04 AM · Restricted Project, Restricted Project

Jan 30 2022

sanjoy committed rG8f66ab1c2e00: Replace OwningModuleRef with OwningOpRef<ModuleOp> (authored by sanjoy).
Replace OwningModuleRef with OwningOpRef<ModuleOp>
Jan 30 2022, 2:13 PM
sanjoy closed D118574: Replace OwningModuleRef with OwningOpRef<ModuleOp>.
Jan 30 2022, 2:13 PM · Restricted Project
sanjoy requested review of D118574: Replace OwningModuleRef with OwningOpRef<ModuleOp>.
Jan 30 2022, 12:19 PM · Restricted Project
sanjoy added a comment to D118543: Remove OpTrait, AttrTrait and TypeTrait.

Can you please add a commit summary?

Jan 30 2022, 8:27 AM · Restricted Project, Restricted Project
sanjoy updated the summary of D118543: Remove OpTrait, AttrTrait and TypeTrait.
Jan 30 2022, 8:26 AM · Restricted Project, Restricted Project

Jan 29 2022

sanjoy updated the diff for D118543: Remove OpTrait, AttrTrait and TypeTrait.

Address comments.

Jan 29 2022, 6:15 PM · Restricted Project, Restricted Project
sanjoy resigned from D32720: [LICM] Introduce a finer granularity option to compute early exits..
Jan 29 2022, 5:44 PM · Restricted Project
sanjoy resigned from D33332: Possible typo in ProgrammersManual documentation.
Jan 29 2022, 5:44 PM
sanjoy resigned from D33863: [DAGComine] (fadd x, undef) -> undef and (fmul x, undef) -> undef.
Jan 29 2022, 5:44 PM
sanjoy resigned from D34566: [loop idiom Recognition] support memcpy for multiple consecutive loads and stores.
Jan 29 2022, 5:44 PM
sanjoy resigned from D34598: ScalarEvolution: Add URem support.
Jan 29 2022, 5:44 PM
sanjoy resigned from D35858: [RFC] [LLVM] [LazyValueInfo] Introduce getRecurringEdgeValue to handle simple recurrence.
Jan 29 2022, 5:44 PM
sanjoy resigned from D39213: [PM] Fix Typo.
Jan 29 2022, 5:43 PM
sanjoy resigned from D39986: [LSR] Expand: Use the replaced value's debug loc (PR25630).
Jan 29 2022, 5:43 PM
sanjoy resigned from D41689: [SCEVAA] Don't crash on pointers with no dominance relationship..
Jan 29 2022, 5:43 PM · Restricted Project
sanjoy resigned from D44252: [CVP] [LVI] Add LVI::getPredicateInBlock and use it in CVP..
Jan 29 2022, 5:43 PM · Restricted Project
sanjoy resigned from D45150: Less conservative LoopSafetyInfo for headers.
Jan 29 2022, 5:43 PM · Restricted Project
sanjoy resigned from D46201: [DA] Use SCEV to conclude DVEntry::EQ in some cases..
Jan 29 2022, 5:43 PM
sanjoy resigned from D46380: [InstSimplify] Adding safety checks for 'shl', 'ashr' and 'lshr'.
Jan 29 2022, 5:42 PM · Restricted Project
sanjoy resigned from D46760: [InstCombine] Enhance narrowUDivURem..
Jan 29 2022, 5:42 PM · Restricted Project, Restricted Project
sanjoy resigned from D48239: [LangRef] Clarify meaning of "dereferencable" attribute/metadata..
Jan 29 2022, 5:42 PM · Restricted Project