In D107822#2956860, @lebedev.ri wrote:The code here looks very weird.
Please can you at least split this up into a preparatory NFC changes, the deref-based fold, and the domination-based fold?
Also, please precommit the tests, even if just locally for you, so that the patches show how the check lines change.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Aug 21 2021
Aug 21 2021
Krishnakariya added a comment to D107822: [InstCombine] Fold Int2Ptr/PtrToInt if the ptr is dereferenceable.
Krishnakariya updated the diff for D107822: [InstCombine] Fold Int2Ptr/PtrToInt if the ptr is dereferenceable.
Updated diff
Aug 20 2021
Aug 20 2021
Krishnakariya added reviewers for D108504: [InstCombine][NFC] refactor roundtripcast: nlopes, aqjune, spatel, nikic, lebedev.ri.
Aug 18 2021
Aug 18 2021
Krishnakariya added a comment to D107822: [InstCombine] Fold Int2Ptr/PtrToInt if the ptr is dereferenceable.
ping
Aug 12 2021
Aug 12 2021
Krishnakariya added reviewers for D107822: [InstCombine] Fold Int2Ptr/PtrToInt if the ptr is dereferenceable: nlopes, aqjune, nikic, spatel, lebedev.ri.
Krishnakariya updated the diff for D107822: [InstCombine] Fold Int2Ptr/PtrToInt if the ptr is dereferenceable.
updated.
Krishnakariya updated the diff for D107822: [InstCombine] Fold Int2Ptr/PtrToInt if the ptr is dereferenceable.
updated
Aug 11 2021
Aug 11 2021
Krishnakariya updated the diff for D107822: [InstCombine] Fold Int2Ptr/PtrToInt if the ptr is dereferenceable.
Modified code and Added new tests
Aug 10 2021
Aug 10 2021
Krishnakariya requested review of D107822: [InstCombine] Fold Int2Ptr/PtrToInt if the ptr is dereferenceable.
Aug 9 2021
Aug 9 2021
Krishnakariya committed rG5f6b4ce7de65: [InstCombine] Remove nnan requirement for transformation to fabs from select (authored by Krishnakariya).
[InstCombine] Remove nnan requirement for transformation to fabs from select
Krishnakariya added inline comments to D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
Aug 9 2021, 10:29 AM · Restricted Project
Aug 7 2021
Aug 7 2021
Krishnakariya committed rGa9a176ca3bb0: [InstCombine] Remove nnan requirement for transformation to fabs from select (authored by Krishnakariya).
[InstCombine] Remove nnan requirement for transformation to fabs from select
Krishnakariya closed D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
Aug 7 2021, 10:09 AM · Restricted Project
Krishnakariya updated the diff for D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
Updating the same diff to commit this patch.
Aug 7 2021, 8:52 AM · Restricted Project
Aug 3 2021
Aug 3 2021
Krishnakariya added a comment to D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
In D106872#2922157, @lebedev.ri wrote:In D106872#2922101, @Krishnakariya wrote:I committed this patch by mistake. I am extremely sorry about this.
I've reverted the commit.FWIW reading through the disscussion i would think this has been basically accepted, if not stamped yet for formal reasons of wanting the tests to be precommitted.
Aug 3 2021, 6:44 AM · Restricted Project
Krishnakariya added a comment to D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
I committed this patch by mistake. I am extremely sorry about this.
I've reverted the commit.
Aug 3 2021, 6:11 AM · Restricted Project
Krishnakariya committed rG946fd4ea65bd: Revert "[InstCombine] Remove nnan requirement for transformation to fabs from… (authored by Krishnakariya).
Revert "[InstCombine] Remove nnan requirement for transformation to fabs from…
Krishnakariya added a reverting change for D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select: rG946fd4ea65bd: Revert "[InstCombine] Remove nnan requirement for transformation to fabs from….
Aug 3 2021, 5:38 AM · Restricted Project
Krishnakariya committed rGd99260641b30: [InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x) (authored by Krishnakariya).
[InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x)
Krishnakariya committed rG6180ce2e2abe: [InstCombine] Remove nnan requirement for transformation to fabs from select (authored by Krishnakariya).
[InstCombine] Remove nnan requirement for transformation to fabs from select
Aug 3 2021, 5:23 AM · Restricted Project
Krishnakariya closed D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
Aug 3 2021, 5:23 AM · Restricted Project
Krishnakariya added inline comments to D106289: [InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x).
Aug 3 2021, 3:26 AM · Restricted Project
Krishnakariya updated the diff for D106289: [InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x).
Aug 3 2021, 3:24 AM · Restricted Project
Aug 2 2021
Aug 2 2021
Krishnakariya updated the diff for D106289: [InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x).
Simplified code.
Aug 2 2021, 11:57 AM · Restricted Project
Krishnakariya added a comment to D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
Updated diff after pre-committing tests.
Aug 2 2021, 8:42 AM · Restricted Project
Krishnakariya updated the diff for D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
Aug 2 2021, 3:41 AM · Restricted Project
Aug 1 2021
Aug 1 2021
Krishnakariya committed rG56e7b6c3924d: [InstCombine] Precommit tests for D106872 (NFC) (authored by Krishnakariya).
[InstCombine] Precommit tests for D106872 (NFC)
Jul 31 2021
Jul 31 2021
Krishnakariya updated the diff for D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
Jul 31 2021, 3:23 AM · Restricted Project
Krishnakariya updated the diff for D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
Added new tests
Jul 31 2021, 3:07 AM · Restricted Project
Jul 30 2021
Jul 30 2021
Krishnakariya updated the diff for D106289: [InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x).
Yes, it handles this case. I have added a new test for the same.
Jul 30 2021, 5:42 AM · Restricted Project
Jul 28 2021
Jul 28 2021
Krishnakariya updated the diff for D106289: [InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x).
Added a test for different input pointer types (func_pointer_different_types).
Jul 28 2021, 2:31 AM · Restricted Project
Jul 27 2021
Jul 27 2021
Krishnakariya added a comment to D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
In D106872#2907220, @lebedev.ri wrote:It would be good to mention in the description *why* this is being done, why this is okay (alive2 link would suffice)
Sure, I have updated the description.
Jul 27 2021, 6:39 AM · Restricted Project
Krishnakariya updated the summary of D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
Jul 27 2021, 6:38 AM · Restricted Project
Krishnakariya requested review of D106872: [InstCombine] Remove nnan requirement for transformation to fabs from select.
Jul 27 2021, 6:22 AM · Restricted Project
Jul 26 2021
Jul 26 2021
Krishnakariya updated the diff for D106289: [InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x).
Jul 26 2021, 4:16 AM · Restricted Project
Krishnakariya updated the diff for D106289: [InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x).
Jul 26 2021, 12:33 AM · Restricted Project
Jul 24 2021
Jul 24 2021
Krishnakariya added a comment to D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag .
Yes, we may remove FMF checks as below. I will make a new patch for this.
FSub logic: Remove check for nnan flag presence in fsub instruction. Example: https://alive2.llvm.org/ce/z/tYeZub (fsub).
FNeg logic: Remove check for the presence of nnan and nsz flag in fneg instruction. Example: https://alive2.llvm.org/ce/z/TbuLnk (fneg), https://alive2.llvm.org/ce/z/yBDCZ_ (fsub).
Jul 24 2021, 12:26 PM · Restricted Project
Jul 22 2021
Jul 22 2021
Krishnakariya updated the diff for D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag .
Jul 22 2021, 10:55 AM · Restricted Project
Could you please commit this patch for me? I do not have commit access yet.
Jul 22 2021, 8:36 AM · Restricted Project
Jul 22 2021, 8:26 AM · Restricted Project
Jul 22 2021, 8:26 AM · Restricted Project
Krishnakariya updated the diff for D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag .
Hi @spatel,
I am sorry for my delayed responses to this patch. I wanted to ask for some clarification on your previous comments.
I have created few new tests similar to the original ones, with the only change that the FMF flag present in the fsub/fneg is now present on the select instruction. Original tests are left untouched.
Is this what you were expecting in your last comment?
Jul 22 2021, 7:42 AM · Restricted Project
Jul 20 2021
Jul 20 2021
Krishnakariya added reviewers for D106289: [InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x): nikic, lebedev.ri, aqjune, nlopes.
Jul 20 2021, 8:31 AM · Restricted Project
Jul 19 2021
Jul 19 2021
Krishnakariya updated the diff for D106289: [InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x).
Jul 19 2021, 10:57 AM · Restricted Project
Krishnakariya requested review of D106289: [InstCombine] Fold phi ( inttoptr/ptrtoint x ) to phi (x).
Jul 19 2021, 10:37 AM · Restricted Project
Jul 17 2021
Jul 17 2021
Simplified code.
Jul 17 2021, 6:51 AM · Restricted Project
Jul 15 2021
Jul 15 2021
Jul 15 2021, 5:09 AM · Restricted Project
simplified code for function "foldICmpWithCastOp".
Jul 15 2021, 3:17 AM · Restricted Project
Krishnakariya added a comment to D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag .
Ping @spatel, a gentle reminder. Could you please review the updates on this patch?
Jul 15 2021, 2:58 AM · Restricted Project
Jul 14 2021
Jul 14 2021
Created a new function (simplifyIntToPtrRoundTripCast) which simplifies the inttoptr/ptrtoint cast.
Jul 14 2021, 11:39 AM · Restricted Project
Jul 13 2021
Jul 13 2021
In D105771#2871729, @nikic wrote:@Krishnakariya Could you please share Your Name <your@email.com> to use for the commit?
Jul 13 2021, 3:08 AM · Restricted Project
Jul 12 2021
Jul 12 2021
In D105771#2871413, @nikic wrote:LGTM
Thanks.
I do not have commit access. Please commit this patch for me.
Jul 12 2021, 10:08 AM · Restricted Project
Modified test3 and updated the names of unit tests.
Jul 12 2021, 9:01 AM · Restricted Project
Jul 11 2021
Jul 11 2021
Jul 11 2021, 3:15 AM · Restricted Project
Jul 9 2021
Jul 9 2021
Jul 9 2021, 6:40 AM · Restricted Project
Jul 9 2021, 6:36 AM · Restricted Project
Added an command-line option disable-i2p-p2i-opt to opt to disable inttoptr/ptrtoint optimization.
I have removed the const keyword from the declaration of the CastResults array.
This change is temporary, and the array would be constified again.
Jul 9 2021, 6:13 AM · Restricted Project
Jul 8 2021
Jul 8 2021
Krishnakariya updated the diff for D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag .
Jul 8 2021, 11:36 AM · Restricted Project
Jul 7 2021
Jul 7 2021
Updated the check.
Jul 7 2021, 12:23 PM · Restricted Project
Krishnakariya updated the diff for D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag .
Updates:
- Added check for nnan (earlier removed) and added new tests.
- Check for nsz in select for fneg logic is required. So, I didn't remove this check. Please see this example: https://alive2.llvm.org/ce/z/sEfTYx.
Jul 7 2021, 12:18 PM · Restricted Project
Jul 6 2021
Jul 6 2021
Added the check and test case for the same.
Jul 6 2021, 12:01 PM · Restricted Project
Jul 4 2021
Jul 4 2021
Krishnakariya updated the diff for D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag .
In D101727#2832971, @spatel wrote:I'm confused. This patch started by just switching the FMF propagation source from the fneg/fsub to the select. Now, we are back to taking flags from fneg and then intersecting some flags from the select.
But this approach has known bugs, as you have shown in the new Alive2 example. Why is this version of the patch better than just propagating all flags from the select?
Jul 4 2021, 5:12 AM · Restricted Project
Jun 29 2021
Jun 29 2021
Jun 29 2021, 4:01 AM · Restricted Project
Jun 29 2021, 1:28 AM · Restricted Project
Jun 14 2021
Jun 14 2021
Krishnakariya added a comment to D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag .
This patch is complete and is ready for review.
Jun 14 2021, 11:45 PM · Restricted Project
Jun 3 2021
Jun 3 2021
Krishnakariya updated the diff for D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag .
Jun 3 2021, 11:52 AM · Restricted Project
Krishnakariya updated the diff for D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag .
I have made changes in FMF propagation logic.
FMF like nnan and ninf should be propagated only if present in select instruction, while for other flags like arcp, reassoc, it doesn't really depend on select instruction.
Jun 3 2021, 8:41 AM · Restricted Project
May 14 2021
May 14 2021
Krishnakariya updated the diff for D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag .
Added description for the test case.
May 14 2021, 6:23 AM · Restricted Project
May 3 2021
May 3 2021
Krishnakariya added a reviewer for D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag : spatel.
May 3 2021, 4:42 AM · Restricted Project
May 2 2021
May 2 2021
Krishnakariya requested review of D101727: Fix PR47960 - Incorrect transformation of fabs with nnan flag .
May 2 2021, 1:25 PM · Restricted Project