Page MenuHomePhabricator

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

manas (Manas Gupta)
User

Projects

User does not belong to any projects.

User Details

User Since
May 17 2021, 1:21 PM (123 w, 4 d)

Recent Activity

Jun 6 2023

manas added a comment to D151897: [mlir][Toy] Remove unnecessary transpose from chapter 1 example.

@manas Thank you for looking at this! After I rebase onto main using git, what are my steps to update this revision? How do I restart the buildbot? Or does it run automatically after I update the revision? Sorry, first time using the LLVM workflow.

Jun 6 2023, 10:59 AM · Restricted Project, Restricted Project
manas added a comment to D151897: [mlir][Toy] Remove unnecessary transpose from chapter 1 example.

Can you rebase it to latest and restart buildbot? I see no reason it should fail with an OOM.

Jun 6 2023, 10:04 AM · Restricted Project, Restricted Project

May 31 2023

manas committed rG69db592f762a: [mlir][arith] Disallow zero ranked tensors for select's condition (authored by manas).
[mlir][arith] Disallow zero ranked tensors for select's condition
May 31 2023, 11:44 PM · Restricted Project, Restricted Project
manas closed D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.
May 31 2023, 11:43 PM · Restricted Project, Restricted Project
manas added a comment to D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.

The bufferization crash wouldn't be solved by this change anyway would it? Would bufferization handles %r = "arith.select"(%cond, %t, %f) : (tensor<42xi1>, tensor<42xi32>, tensor<42xi32>) -> tensor<42xi32> ?
`

That's correct. I will patch a fix for the crash after this. Yes the bufferization will crash for above example too.

May 31 2023, 11:21 PM · Restricted Project, Restricted Project
manas updated the diff for D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.

Remove Non0RankPred

May 31 2023, 11:21 PM · Restricted Project, Restricted Project
manas added a comment to D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.

This test looks correct to me, if it fails then you have something incorrect with you check.

I believe we want to prevent any `tensor<i1> in the arith.select's condition.

Why would we? As mentioned before, the "no broadcast" rule is enough: that is "either scalar or shape matching" describe what this op should support, I don't quite get why rank-0 should be special? (the problem is indeed that rank-0 is special right now and I believe the point of this fix should be to make it not special)

May 31 2023, 4:10 AM · Restricted Project, Restricted Project

May 29 2023

manas added a comment to D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.

This test looks correct to me, if it fails then you have something incorrect with you check.

May 29 2023, 9:38 PM · Restricted Project, Restricted Project
manas added a comment to D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.

LGTM
(do you have commit access?)

I think I do. I will push it. Thanks a lot for reviewing this!

May 29 2023, 8:38 PM · Restricted Project, Restricted Project
manas added inline comments to D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.
May 29 2023, 7:47 PM · Restricted Project, Restricted Project
manas updated the diff for D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.

Do dead-code elimination

May 29 2023, 7:47 PM · Restricted Project, Restricted Project
manas updated the diff for D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.

Add op type constraint over SelectOp operands

May 29 2023, 12:45 PM · Restricted Project, Restricted Project

May 23 2023

manas updated the diff for D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.

Remove irrelevant docs

May 23 2023, 5:53 PM · Restricted Project, Restricted Project
manas added inline comments to D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.
May 23 2023, 5:49 PM · Restricted Project, Restricted Project
manas added inline comments to D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.
May 23 2023, 5:39 PM · Restricted Project, Restricted Project
manas updated the diff for D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.

Rename type to ScalarConditionOrMatchingShape

May 23 2023, 5:27 PM · Restricted Project, Restricted Project
manas added a comment to D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.

I am not sure that the appropriate description is « book-like of non zero rank ».
To me it is rather: « scalar condition or matching shape » here.

May 23 2023, 5:14 PM · Restricted Project, Restricted Project
manas added a comment to D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.

This test contains tensor<i1> and I am not sure if I should edit the CHECKs or remove the test altogether (as it will not check anything about linalg.generic, the reason why it was placed there).

May 23 2023, 5:11 PM · Restricted Project, Restricted Project
manas requested review of D151270: [mlir][arith] Disallow zero ranked tensors for select's condition.
May 23 2023, 5:07 PM · Restricted Project, Restricted Project

Mar 28 2023

manas committed rG69bc8c9e2ad9: [mlir][doc] Fix typos (authored by manas).
[mlir][doc] Fix typos
Mar 28 2023, 4:34 AM · Restricted Project, Restricted Project
manas closed D147028: [mlir][doc] Fix typos.
Mar 28 2023, 4:34 AM · Restricted Project, Restricted Project
manas updated the diff for D147028: [mlir][doc] Fix typos.

Fix typo

Mar 28 2023, 4:13 AM · Restricted Project, Restricted Project

Mar 27 2023

manas updated the summary of D147028: [mlir][doc] Fix typos.
Mar 27 2023, 10:35 PM · Restricted Project, Restricted Project
manas requested review of D147028: [mlir][doc] Fix typos.
Mar 27 2023, 10:34 PM · Restricted Project, Restricted Project

Mar 22 2023

manas added a comment to D146041: Fix weirdly apologetic diagnostic messages.

Hi, I came across this due to changes in Static Analyzer. One of the changes is not related to the Github issue mentioned above. Maybe we can drop that file?

Mar 22 2023, 1:23 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Jan 24 2023

manas committed rGa037b85f3097: [analyzer] Update satest dependencies (authored by manas).
[analyzer] Update satest dependencies
Jan 24 2023, 1:08 PM · Restricted Project, Restricted Project
manas closed D142454: [analyzer] Update satest dependencies.
Jan 24 2023, 1:07 PM · Restricted Project, Restricted Project
manas committed rG5f02ad880e42: [analyzer][solver] Improve reasoning for not equal to operator (authored by manas).
[analyzer][solver] Improve reasoning for not equal to operator
Jan 24 2023, 1:03 PM · Restricted Project, Restricted Project
manas closed D140086: [analyzer][solver] Improve reasoning for not equal to operator.
Jan 24 2023, 1:03 PM · Restricted Project, Restricted Project
manas requested review of D142454: [analyzer] Update satest dependencies.
Jan 24 2023, 3:59 AM · Restricted Project, Restricted Project
manas added a comment to D140086: [analyzer][solver] Improve reasoning for not equal to operator.

Gentle ping.

Jan 24 2023, 3:23 AM · Restricted Project, Restricted Project

Jan 4 2023

manas added inline comments to D140086: [analyzer][solver] Improve reasoning for not equal to operator.
Jan 4 2023, 4:26 PM · Restricted Project, Restricted Project
manas added a comment to D140086: [analyzer][solver] Improve reasoning for not equal to operator.

This test fails.

void testfoo(unsigned char u, signed int s) {
  if (u >= 253 && u <= 255 && s < INT_MAX - 2) {
    // u: [253, 254], s: [INT_MIN, INT_MAX - 2]
    clang_analyzer_eval(u != s); // expected-warning{{UNKNOWN}}
                                 // but returns TRUE
  }
}

I feel like we have something to talk about.
When I do the review pro bono, I'd like to focus on higher-level issues and let the submitter deal with the smaller concerns.

Jan 4 2023, 4:24 PM · Restricted Project, Restricted Project
manas updated the diff for D140086: [analyzer][solver] Improve reasoning for not equal to operator.

Re-introduce bitwidth comparison

Jan 4 2023, 4:24 PM · Restricted Project, Restricted Project

Dec 18 2022

manas added inline comments to D140086: [analyzer][solver] Improve reasoning for not equal to operator.
Dec 18 2022, 3:35 AM · Restricted Project, Restricted Project

Dec 17 2022

manas updated the diff for D140086: [analyzer][solver] Improve reasoning for not equal to operator.

Remove redundant branches

Dec 17 2022, 3:51 PM · Restricted Project, Restricted Project
manas added a comment to D140086: [analyzer][solver] Improve reasoning for not equal to operator.

Thanks for going the extra mile to address this last thing. I really appreciate it.
I've got only a few minor comments and suggestions.

I'd recommend spell-checking the comments and the summary of this revision.
See my technical comments inline.

Dec 17 2022, 3:48 PM · Restricted Project, Restricted Project

Dec 15 2022

manas updated the diff for D140086: [analyzer][solver] Improve reasoning for not equal to operator.

Rebase

Dec 15 2022, 5:04 AM · Restricted Project, Restricted Project

Dec 14 2022

manas requested review of D140086: [analyzer][solver] Improve reasoning for not equal to operator.
Dec 14 2022, 6:58 PM · Restricted Project, Restricted Project

Dec 9 2022

manas updated the diff for D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Rebase

Dec 9 2022, 1:33 AM · Restricted Project, Restricted Project
manas updated the diff for D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Assert over non-empty ranges and add fixme for not handled cases

Dec 9 2022, 12:57 AM · Restricted Project, Restricted Project
manas added a comment to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

For the test cases where we should be able to prove the case but return Unknown instead, should be marked by a FIXME stating the expected value.
Approximating a concrete value with Unknown is (almost) always correct. So, in this case, you don't need to go and fix them unless you want to do the extra mile.

Dec 9 2022, 12:56 AM · Restricted Project, Restricted Project

Dec 6 2022

manas updated the diff for D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Add more tests for complete coverage

Dec 6 2022, 10:38 AM · Restricted Project, Restricted Project
manas added inline comments to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.
Dec 6 2022, 10:37 AM · Restricted Project, Restricted Project

Nov 25 2022

manas updated the diff for D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Fix test cases

Nov 25 2022, 6:00 AM · Restricted Project, Restricted Project
manas added a comment to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Analysis/constant-folding.c seems to fail.
Please run the check-clang-analysis build target to see what fails and investigate it.

Nov 25 2022, 5:59 AM · Restricted Project, Restricted Project

Nov 8 2022

manas added a comment to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Ping

Nov 8 2022, 1:02 PM · Restricted Project, Restricted Project

Sep 29 2022

manas added a comment to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Thanks @martong and @ASDenysPetrov for the feedback. I utilized (u != n) to disallow bifurcation in test cases.

Sep 29 2022, 8:26 AM · Restricted Project, Restricted Project
manas updated the diff for D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Fix casting to bigger/unsigned type and add tests with multiple ranges in RangeSet

Sep 29 2022, 8:08 AM · Restricted Project, Restricted Project

Jul 18 2022

manas added inline comments to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.
Jul 18 2022, 6:52 PM · Restricted Project, Restricted Project
manas updated the diff for D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Rebase and fix comments

Jul 18 2022, 6:47 PM · Restricted Project, Restricted Project
manas added a comment to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Considering @ASDenysPetrov 's example of LHS = [1, 2] U [8, 9] and RHS = [5, 6], I constructed a test case as following:

Jul 18 2022, 9:58 AM · Restricted Project, Restricted Project
manas updated the diff for D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Remove filling gaps and convert, use castTo, and add tests for short-ushort,
char-uchar pairs

Jul 18 2022, 9:43 AM · Restricted Project, Restricted Project

Jul 15 2022

manas added a comment to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

The coverage showing unreachability of VisitBinaryOperator<BO_NE> for concrete integer cases.

Jul 15 2022, 1:35 AM · Restricted Project, Restricted Project
manas updated the diff for D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Add concrete tests for same and different types

Jul 15 2022, 1:34 AM · Restricted Project, Restricted Project

Jul 11 2022

manas added a comment to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

I was busy with other stuff. I will take a look at it now.

Jul 11 2022, 5:53 PM · Restricted Project, Restricted Project

Apr 10 2022

manas closed D106416: [analyzer] Fix build dependency issues for SATest.
Apr 10 2022, 2:09 PM · Restricted Project, Restricted Project

Apr 7 2022

manas updated the diff for D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Format constant-folding.c

Apr 7 2022, 2:09 AM · Restricted Project, Restricted Project
manas updated the diff for D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Fix comments and rebase

Apr 7 2022, 1:23 AM · Restricted Project, Restricted Project

Apr 6 2022

manas added inline comments to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.
Apr 6 2022, 11:50 AM · Restricted Project, Restricted Project
manas added a comment to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

@steakhal apologies for holding onto this for so long. I managed to fix previously untestable test cases. The issue was that I was building expressions as (u1 != u2) != 0 and the solver was canonicalizing this to an equivalent BO_EQ expression. That's why, it wasn't reaching VisitBinaryOperator<BO_NE>(). So I changed all tests as following: (u1 != u2) (removing the latter != 0 part. Also, I utilized the getConcreteValue() for checking of single APSInt in the RangeSets.

Apr 6 2022, 11:49 AM · Restricted Project, Restricted Project
manas updated the diff for D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Fix test cases to make them reachable via VisiBinaryOperator<BO_NE> and using getConcreteValue()

Apr 6 2022, 11:45 AM · Restricted Project, Restricted Project

Mar 2 2022

Herald added a project to D120646: [clang][scan-build] Change mode of installation for scan-build.1: Restricted Project.

Buildbots are happy. I think we can land this. @steakhal do you mind landing it?

Mar 2 2022, 4:04 AM · Restricted Project, Restricted Project

Mar 1 2022

manas added a comment to D120646: [clang][scan-build] Change mode of installation for scan-build.1.

I rebased to see if it satisfies the buildbot.

Mar 1 2022, 7:58 AM · Restricted Project, Restricted Project
manas updated the diff for D120646: [clang][scan-build] Change mode of installation for scan-build.1.

Rebase

Mar 1 2022, 7:57 AM · Restricted Project, Restricted Project

Feb 28 2022

manas added a comment to D120646: [clang][scan-build] Change mode of installation for scan-build.1.

This patch fixes #53967.

Feb 28 2022, 12:15 AM · Restricted Project, Restricted Project
manas added a reviewer for D120646: [clang][scan-build] Change mode of installation for scan-build.1: steakhal.
Feb 28 2022, 12:14 AM · Restricted Project, Restricted Project
manas requested review of D120646: [clang][scan-build] Change mode of installation for scan-build.1.
Feb 28 2022, 12:13 AM · Restricted Project, Restricted Project

Nov 29 2021

manas abandoned D114758: [analyzer][solver] Introduce reasoning for not equal to operator.
Nov 29 2021, 5:22 PM · Restricted Project
manas added a comment to D114758: [analyzer][solver] Introduce reasoning for not equal to operator.

Closing this as this is mistakenly a duplicate of existing differential D112621.

Nov 29 2021, 5:18 PM · Restricted Project
manas added a comment to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

I have made few changes:

Nov 29 2021, 5:17 PM · Restricted Project, Restricted Project
manas updated the diff for D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

Fix comparison between different types and add a test to check it

Nov 29 2021, 5:11 PM · Restricted Project, Restricted Project
manas requested review of D114758: [analyzer][solver] Introduce reasoning for not equal to operator.
Nov 29 2021, 5:04 PM · Restricted Project

Oct 27 2021

manas added a comment to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

It seems like the test does not exercise the modified code segment.
Please investigate, and make sure that the code you submit is actually exercised by the test you provide.

Oct 27 2021, 8:40 AM · Restricted Project, Restricted Project
manas added a comment to D112621: [analyzer][solver] Introduce reasoning for not equal to operator.

@steakhal @martong This patch solves the comparison between different types by bypassing the RangeSets first to VisitBinaryOperator which coarses/converts, and then only it checks for any True/False ranges via comparison. This is similar to what happens with BO_Rem, BO_And etc. as well.

Oct 27 2021, 6:40 AM · Restricted Project, Restricted Project
manas added reviewers for D112621: [analyzer][solver] Introduce reasoning for not equal to operator: steakhal, martong, ASDenysPetrov, vsavchenko, NoQ.
Oct 27 2021, 6:37 AM · Restricted Project, Restricted Project
manas requested review of D112621: [analyzer][solver] Introduce reasoning for not equal to operator.
Oct 27 2021, 6:36 AM · Restricted Project, Restricted Project

Oct 23 2021

manas added a comment to D105447: [analyzer] Allow cmake options to be passed to satest container.

Gentle ping! I think landing it will make collecting analyzer information easier (in terms of faster build) as more (appropriate) cmake options can be passed via cmdline.

Oct 23 2021, 3:53 PM · Restricted Project
manas added reviewers for D105447: [analyzer] Allow cmake options to be passed to satest container: martong, steakhal.
Oct 23 2021, 3:51 PM · Restricted Project
manas added a comment to D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

Based on the information from debugger, the logs show RangeSets [0, 255] and [INT_MIN, 0] from different types are causing the failure.
I tried producing a compact test case. The essential part is the comparison between different types, as in this case unsigned int and int. In other binary operators (BO_And, BO_Rem, etc.), this gets handled by coarsing RangeSets to Ranges and converting those Ranges to resulting type for comparison. This is missing in BO_NE. I suppose, this may be the reason behind the signedness mismatch.

Oct 23 2021, 3:33 PM · Restricted Project

Oct 22 2021

manas added a comment to D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

I have received a failed build on clang-ppc64be-linux (https://lab.llvm.org/buildbot/#/builders/52/builds/11704). Although, I haven't verified the commit. Is there something wrong with this commit? Is the function VisitBinaryOperator<BO_NE> reachable?

Oct 22 2021, 4:11 AM · Restricted Project

Oct 1 2021

manas added a comment to D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

I'll take a look at this over the weekend.

Oct 1 2021, 4:04 PM · Restricted Project
manas added a comment to D107312: [analyzer] Fix deprecated plistlib functions.

I'm not using this script. I'm assuming you run it and verified that it works.
Thanks for cleaning this up.

Oct 1 2021, 7:38 AM · Restricted Project
manas added a comment to D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

I do not have landing rights.

Please add your name and email on whom behalf I should commit this patch. Mine is Balazs Benics<balazs.benics@sigmatechnology.se>

Oct 1 2021, 7:36 AM · Restricted Project
manas added a comment to D107312: [analyzer] Fix deprecated plistlib functions.

Gentle ping.

Oct 1 2021, 5:47 AM · Restricted Project
manas added reviewers for D107312: [analyzer] Fix deprecated plistlib functions: steakhal, Szelethus, martong, ASDenysPetrov.
Oct 1 2021, 5:47 AM · Restricted Project
manas added a comment to D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

Good work. Land it.

Oct 1 2021, 5:35 AM · Restricted Project

Sep 30 2021

manas updated the diff for D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

Fix typo

Sep 30 2021, 2:12 PM · Restricted Project
manas added a comment to D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

Okay, I don't see any problems besides this typo.

Oops!

Sep 30 2021, 11:08 AM · Restricted Project

Sep 29 2021

manas updated the diff for D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

Apply mentioned edits in testcases

Sep 29 2021, 2:21 PM · Restricted Project
manas added a comment to D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

The pre-merge checks fail due to the patch being unable to get applied. The troubleshooting suggest to update the patch via arc diff `git merge-base HEAD origin` --update D106102 and it would include all local changes into that patch. Shouldn't I avoid including all local changes, as some local changes are still WIP?

I guess HEAD should refer to the commit that represents this patch, in this case that is ce82443c69be. And I believe you local changes that are not committed should not affect arc diff at all. But, as a precaution, you could first stash your local changes before calling arc. Hope this helps.

Sep 29 2021, 2:21 PM · Restricted Project

Sep 28 2021

manas added a comment to D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

The pre-merge checks fail due to the patch being unable to get applied. The troubleshooting suggest to update the patch via arc diff `git merge-base HEAD origin` --update D106102 and it would include all local changes into that patch. Shouldn't I avoid including all local changes, as some local changes are still WIP?

Sep 28 2021, 1:58 PM · Restricted Project
manas updated the diff for D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

Rebase

Sep 28 2021, 1:45 PM · Restricted Project
manas updated the diff for D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

Move method to a specialized template for VisitBinaryOperator

Sep 28 2021, 1:26 PM · Restricted Project

Sep 25 2021

manas added a comment to D106416: [analyzer] Fix build dependency issues for SATest.

@vsavchenko should we land this?

Sep 25 2021, 1:04 AM · Restricted Project, Restricted Project
manas updated the diff for D106416: [analyzer] Fix build dependency issues for SATest.

Upgrade cmake to 3.21.3

Sep 25 2021, 1:04 AM · Restricted Project, Restricted Project

Sep 24 2021

manas updated the diff for D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

Rebase

Sep 24 2021, 12:55 AM · Restricted Project
manas added a comment to D106102: [analyzer][solver] Introduce reasoning for not equal to operator.

I haven't tried specializing that VisitBinaryOperator method which converts Ranges from RangeSets (as @vsavchenko mentioned). Should this case for NE stay here in the switch or move?

Sep 24 2021, 12:48 AM · Restricted Project

Aug 3 2021

manas added a comment to D105273: [analyzer] Introduce range-based reasoning for subtraction operator.
Aug 3 2021, 7:54 AM · Restricted Project
manas added a comment to D103440: [WIP][analyzer] Introduce range-based reasoning for addition operator.

I have updated the proof for Add: https://gist.github.com/weirdsmiley/ad6a9dbf3370e96d29f9e90068931d25

Aug 3 2021, 7:53 AM · Restricted Project