Page MenuHomePhabricator
Feed Advanced Search

Today

fhahn committed rG02885ef3e406: [ConstraintElim] Use GEPOperator instead of GetElementPtrInst. (authored by fhahn).
[ConstraintElim] Use GEPOperator instead of GetElementPtrInst.
Fri, Mar 24, 12:16 PM · Restricted Project, Restricted Project
fhahn added a comment to D144274: [InstCombine] use loop info when running the pass after loop vectorization.

I think I've found the problem - the patch was missing another case that needs the loop info option.

Fri, Mar 24, 6:35 AM · Restricted Project, Restricted Project

Wed, Mar 22

fhahn committed rG256c6729d371: [ConstraintElim] Add tests with GEP constant expressions. (authored by fhahn).
[ConstraintElim] Add tests with GEP constant expressions.
Wed, Mar 22, 6:13 AM · Restricted Project, Restricted Project
fhahn committed rGea929a07b677: [LV] Set inbounds flag using CreateGEP in vectorizeInterleaveGroup(NFC). (authored by fhahn).
[LV] Set inbounds flag using CreateGEP in vectorizeInterleaveGroup(NFC).
Wed, Mar 22, 4:30 AM · Restricted Project, Restricted Project
fhahn requested changes to D146540: [SLP] Add test to check for GEP vectorization.

Looks like the test is failing in the precommit checks.

Wed, Mar 22, 3:45 AM · Restricted Project, Restricted Project

Tue, Mar 21

fhahn committed rT354d87bc63af: [cmake] Add O2.cmake cache. (authored by fhahn).
[cmake] Add O2.cmake cache.
Tue, Mar 21, 6:37 AM · Restricted Project
fhahn added inline comments to D142885: [VPlan] Allow building a VPlan to may fail..
Tue, Mar 21, 4:48 AM · Restricted Project, Restricted Project
fhahn updated the diff for D142885: [VPlan] Allow building a VPlan to may fail..

Rename to tryToBuildVPlanWithVPRecipes as suggested, thanks!

Tue, Mar 21, 4:48 AM · Restricted Project, Restricted Project
fhahn committed rGaf99aa0ff77d: [LV] Set imbounds flag using CreateGEP in VPWidenMemInst (NFC). (authored by fhahn).
[LV] Set imbounds flag using CreateGEP in VPWidenMemInst (NFC).
Tue, Mar 21, 4:44 AM · Restricted Project, Restricted Project

Mon, Mar 20

fhahn updated the diff for D142886: [VPlan] Switch to checking sinking legality for recurrences in VPlan..

Rebase and ping :)

Mon, Mar 20, 2:14 PM · Restricted Project, Restricted Project
fhahn added inline comments to D142885: [VPlan] Allow building a VPlan to may fail..
Mon, Mar 20, 2:14 PM · Restricted Project, Restricted Project
fhahn updated the diff for D142885: [VPlan] Allow building a VPlan to may fail..

Thanks for taking a look! I think it would be good to land this together with a concrete use of the new functionality, which would be D142886 (still needing review :))

Mon, Mar 20, 2:13 PM · Restricted Project, Restricted Project
fhahn committed rG0c0468e6df2b: [InstCombine] Add test for issue fixed by 50fe87a5c8597e. (authored by fhahn).
[InstCombine] Add test for issue fixed by 50fe87a5c8597e.
Mon, Mar 20, 11:00 AM · Restricted Project, Restricted Project
fhahn added a comment to D144128: [SLP] Check with target before vectorizing GEP Indices.

Sorry about your regression. I looked for a runline in the "godbolt" link, but could not find one.

Mon, Mar 20, 3:36 AM · Restricted Project, Restricted Project
fhahn accepted D145616: [LV] Use speculatability within entire loop to avoid strided load predication.

LGTM with the TODO in the test removed, thanks!

Mon, Mar 20, 12:36 AM · Restricted Project, Restricted Project

Sun, Mar 19

fhahn added inline comments to D143465: [LoopVectorize] Vectorize the reduction pattern of integer min/max with index..
Sun, Mar 19, 2:15 PM · Restricted Project, Restricted Project
fhahn committed rG84870c4abbac: [GlobalOpt] Collect initializer when building GlobalPart. (authored by fhahn).
[GlobalOpt] Collect initializer when building GlobalPart.
Sun, Mar 19, 1:54 PM · Restricted Project, Restricted Project
fhahn closed D145490: [GlobalOpt] Collect initializer when building GlobalPart..
Sun, Mar 19, 1:54 PM · Restricted Project, Restricted Project

Sat, Mar 18

fhahn added inline comments to rG2db71c9851e5: [VPlan] Simplify code in createReplicateRegion (NFC)..
Sat, Mar 18, 1:37 PM · Restricted Project, Restricted Project
fhahn committed rG371bb2c9d34a: [VPlan] Move createReplicateRegion out of VPRecipeBuilder.h. (NFC) (authored by fhahn).
[VPlan] Move createReplicateRegion out of VPRecipeBuilder.h. (NFC)
Sat, Mar 18, 1:31 PM · Restricted Project, Restricted Project
fhahn committed rG6a6b65a84cd5: [LV] Restructure code creating replicate region (NFC). (authored by fhahn).
[LV] Restructure code creating replicate region (NFC).
Sat, Mar 18, 10:17 AM · Restricted Project, Restricted Project

Fri, Mar 17

fhahn committed rG962c306a11d0: [LV] Don't consider pointer as uniform if it is also stored. (authored by fhahn).
[LV] Don't consider pointer as uniform if it is also stored.
Fri, Mar 17, 9:27 AM · Restricted Project, Restricted Project
fhahn committed rGa4bb0374189a: [LV] Add test where pointer is incorrectly marked as uniform. (authored by fhahn).
[LV] Add test where pointer is incorrectly marked as uniform.
Fri, Mar 17, 7:24 AM · Restricted Project, Restricted Project
fhahn committed rG565b98e79342: [LV] Convert consecutive-ptr-uniforms.ll to use opaque pointers (NFC). (authored by fhahn).
[LV] Convert consecutive-ptr-uniforms.ll to use opaque pointers (NFC).
Fri, Mar 17, 7:08 AM · Restricted Project, Restricted Project
fhahn added a comment to D142885: [VPlan] Allow building a VPlan to may fail..

ping :)

Fri, Mar 17, 6:23 AM · Restricted Project, Restricted Project
fhahn added a comment to D145490: [GlobalOpt] Collect initializer when building GlobalPart..

Ping :)

Fri, Mar 17, 5:26 AM · Restricted Project, Restricted Project
fhahn added a comment to D145578: [AArch64] Cost-model vector splat LD1Rs to avoid unprofitable SLP vectorisation.

Just a heads up with are seeing a 10% regression caused by this change in a very SLP sensitive workload (the original source for the slp-fma-loss.ll tests). I still have to double check where the slowdown is coming from exactly.

Fri, Mar 17, 3:40 AM · Restricted Project, Restricted Project
fhahn accepted D146257: Restore code size tracking support in Darwin.

LGTM, thanks for fixing this!

Fri, Mar 17, 3:37 AM · Restricted Project
fhahn accepted D146260: Make code size metric names independent of platform.

@cmatthews @azhar do you know if there are any tests for this part of the code?

Fri, Mar 17, 3:35 AM · Restricted Project
fhahn requested changes to D146277: add assert to confirm input is valid for pass HardwareLoops.

Looks like multiple existing tests are triggering the assert and are failing.

Fri, Mar 17, 3:34 AM · Restricted Project, Restricted Project
fhahn added inline comments to D146277: add assert to confirm input is valid for pass HardwareLoops.
Fri, Mar 17, 3:33 AM · Restricted Project, Restricted Project

Thu, Mar 16

fhahn accepted D146206: [LAA] Fix transitive analysis invalidation bug by implementing LoopAccessInfoManager::invalidate.

Fix LGTM with comments by other people addressed.

Thu, Mar 16, 10:57 AM · Restricted Project, Restricted Project
fhahn added inline comments to D146212: [AArch64] Use NEON's tbl1 for 16xi8 and 8xi8 build vector with mask..
Thu, Mar 16, 10:22 AM · Restricted Project, Restricted Project
fhahn added inline comments to D143865: [VPlan] Add predicate to VPReplicateRecipe, expand region later..
Thu, Mar 16, 10:09 AM · Restricted Project, Restricted Project
fhahn committed rGeca14a810e59: [VPlan] Consolidate replicate region optimizations (NFC). (authored by fhahn).
[VPlan] Consolidate replicate region optimizations (NFC).
Thu, Mar 16, 10:07 AM · Restricted Project, Restricted Project
fhahn accepted D146219: [NFC][LoopVectorize] Change trip counts for some tests to guarantee a scalar tail.

LGTM, thanks for splitting this off!

Thu, Mar 16, 8:28 AM · Restricted Project, Restricted Project
fhahn added a comment to D144128: [SLP] Check with target before vectorizing GEP Indices.

Hi this patch is causing some regressions.
If you look at the example I attached the code sequence is no longer being vectorised when it is beneficial to do so.
https://godbolt.org/z/MTex1z73K

Can you take a look please?

Thu, Mar 16, 7:56 AM · Restricted Project, Restricted Project
fhahn added a comment to D146199: [LoopVectorize] Don't tail-fold for scalable VFs when there is no scalar tail.

The changes to make the tests more robust should probably be submitted separately so the diff only shows the functional test changes. Also, would be good to pre-commit new tests like vector_add_trip1024

Thu, Mar 16, 1:57 AM · Restricted Project, Restricted Project

Wed, Mar 15

fhahn added inline comments to D144051: [SCEV] Do not strengthen nuw/nsw flags during get[Zero,Sign]ExtendedExpr..
Wed, Mar 15, 1:59 PM · Restricted Project, Restricted Project
fhahn committed rG484c622760e2: [SCEV] Do not strengthen nuw/nsw flags during get[Zero,Sign]ExtendedExpr. (authored by fhahn).
[SCEV] Do not strengthen nuw/nsw flags during get[Zero,Sign]ExtendedExpr.
Wed, Mar 15, 1:58 PM · Restricted Project, Restricted Project
fhahn closed D144051: [SCEV] Do not strengthen nuw/nsw flags during get[Zero,Sign]ExtendedExpr..
Wed, Mar 15, 1:57 PM · Restricted Project, Restricted Project
fhahn added a comment to D145929: [LSR] Fold terminating condition not only for eq and ne.

Please make sure to update the commit message; it looks like the latest version doesn't address the poison issue IIUC

Wed, Mar 15, 10:40 AM · Restricted Project, Restricted Project
fhahn accepted D146055: [AArch64] Change GeneratePerfectShuffle to return one destination operand for zip and transpose operations..

LGTM, thanks!

Wed, Mar 15, 10:39 AM · Restricted Project, Restricted Project

Sat, Mar 11

fhahn committed rG2db71c9851e5: [VPlan] Simplify code in createReplicateRegion (NFC). (authored by fhahn).
[VPlan] Simplify code in createReplicateRegion (NFC).
Sat, Mar 11, 2:48 AM · Restricted Project, Restricted Project

Fri, Mar 10

fhahn added inline comments to D32197: [TySan] A Type Sanitizer (Runtime Library).
Fri, Mar 10, 12:35 PM · Restricted Project, Restricted Project
fhahn updated the diff for D32197: [TySan] A Type Sanitizer (Runtime Library).

Address comments, remove ifdef code for ppc and adjust shadow-memory used on ARM64 macOS.

Fri, Mar 10, 12:34 PM · Restricted Project, Restricted Project
fhahn accepted D145507: [LV][VPlan] Fix printing TripCount liveins. NFC.

LGTM, thanks!

Fri, Mar 10, 12:25 PM · Restricted Project, Restricted Project
fhahn accepted D145812: [ConstraintElimination] UB reproducer for D145677.

LGTM, thanks!

Fri, Mar 10, 10:17 AM · Restricted Project, Restricted Project
fhahn added a comment to D145677: [ConstraintElimination] Fix undefined behaviour in shl decomposition.

Thanks for the fix @vitalybuka ! I am surprised this wasn't covered by the added tests. Any idea why that is?

I guess you need shift by [32; 63] to hit this case

Fri, Mar 10, 10:06 AM · Restricted Project, Restricted Project
fhahn committed rGc32c668c8ab7: [ConstraintElim] Update test to use variable start value. (authored by fhahn).
[ConstraintElim] Update test to use variable start value.
Fri, Mar 10, 9:30 AM · Restricted Project, Restricted Project
fhahn added inline comments to D144489: [VPlan] Replace InvariantCond field from VPWidenSelectRecipe..
Fri, Mar 10, 8:57 AM · Restricted Project, Restricted Project
fhahn committed rG9be8d90e62a1: [VPlan] Add VPWidenSelectRecipe::getCond() (NFC). (authored by fhahn).
[VPlan] Add VPWidenSelectRecipe::getCond() (NFC).
Fri, Mar 10, 8:49 AM · Restricted Project, Restricted Project
fhahn updated the diff for D32198: [TySan] A Type Sanitizer (LLVM).

Update to use LLVMContext::MD_nosanitize , add nosanitize.ll test.

Fri, Mar 10, 8:45 AM · Restricted Project, Restricted Project
fhahn updated the diff for D145490: [GlobalOpt] Collect initializer when building GlobalPart..

Bail out if global initializer cannot be evaluated (test added in a011823bff4d5399).

Fri, Mar 10, 7:37 AM · Restricted Project, Restricted Project
fhahn committed rGa011823bff4d: [GlobalOpt] Add test where the initializer evaluation fails. (authored by fhahn).
[GlobalOpt] Add test where the initializer evaluation fails.
Fri, Mar 10, 7:02 AM · Restricted Project, Restricted Project
fhahn committed rG54558fd8f3ef: [VPlan] Replace InvariantCond field from VPWidenSelectRecipe. (authored by fhahn).
[VPlan] Replace InvariantCond field from VPWidenSelectRecipe.
Fri, Mar 10, 6:30 AM · Restricted Project, Restricted Project
fhahn closed D144489: [VPlan] Replace InvariantCond field from VPWidenSelectRecipe..
Fri, Mar 10, 6:30 AM · Restricted Project, Restricted Project
fhahn added a comment to D145677: [ConstraintElimination] Fix undefined behaviour in shl decomposition.

Thanks for the fix @vitalybuka ! I am surprised this wasn't covered by the added tests. Any idea why that is?

Fri, Mar 10, 3:53 AM · Restricted Project, Restricted Project

Thu, Mar 9

fhahn accepted D145270: Add codegen for llvm exp/exp2 elementwise builtins.

LGTM, thanks!

Thu, Mar 9, 10:26 AM · Restricted Project, Restricted Project
fhahn committed rGa8adb38a96d3: [VPlan] Replace invariance fields from VPWidenGEPRecipe. (authored by fhahn).
[VPlan] Replace invariance fields from VPWidenGEPRecipe.
Thu, Mar 9, 8:53 AM · Restricted Project, Restricted Project
fhahn closed D144487: [VPlan] Replace invariance fields from VPWidenGEPRecipe..
Thu, Mar 9, 8:52 AM · Restricted Project, Restricted Project
fhahn accepted D145677: [ConstraintElimination] Fix undefined behaviour in shl decomposition.

LGTM. thanks! But please include the full test (from D145676) in the commit with the fix, as the tests will otherwise fail on the UBSan bots.

Thu, Mar 9, 7:48 AM · Restricted Project, Restricted Project

Wed, Mar 8

fhahn committed rG79272ec028ec: [VPlan] Add predicate to VPReplicateRecipe, expand region later. (authored by fhahn).
[VPlan] Add predicate to VPReplicateRecipe, expand region later.
Wed, Mar 8, 11:12 AM · Restricted Project, Restricted Project
fhahn closed D143865: [VPlan] Add predicate to VPReplicateRecipe, expand region later..
Wed, Mar 8, 11:11 AM · Restricted Project, Restricted Project
fhahn accepted D145599: [CodeGen] Prevent nullptr deref in genAlternativeCodeSequence.

LGTM, thanks!

Wed, Mar 8, 10:38 AM · Restricted Project, Restricted Project
fhahn added inline comments to D145270: Add codegen for llvm exp/exp2 elementwise builtins.
Wed, Mar 8, 9:00 AM · Restricted Project, Restricted Project
fhahn added inline comments to D145490: [GlobalOpt] Collect initializer when building GlobalPart..
Wed, Mar 8, 3:42 AM · Restricted Project, Restricted Project
fhahn updated the diff for D145490: [GlobalOpt] Collect initializer when building GlobalPart..

Only call ConstantFoldLoadFromConst when new entry has been inserted.

Wed, Mar 8, 3:41 AM · Restricted Project, Restricted Project
fhahn added inline comments to D143865: [VPlan] Add predicate to VPReplicateRecipe, expand region later..
Wed, Mar 8, 3:30 AM · Restricted Project, Restricted Project
fhahn committed rG73f2a3b6a48b: [STLExtras] Use std::get in less_first,less_second to support more types (authored by fhahn).
[STLExtras] Use std::get in less_first,less_second to support more types
Wed, Mar 8, 3:08 AM · Restricted Project, Restricted Project
fhahn closed D145489: [STLExtras] Use std::get in less_first,less_second to support more types.
Wed, Mar 8, 3:07 AM · Restricted Project, Restricted Project
fhahn added inline comments to D145322: [VPlan] Check if recipe is in ReplicateRegion for IfPredicateInstr (NFC).
Wed, Mar 8, 3:06 AM · Restricted Project, Restricted Project
fhahn added a comment to D145489: [STLExtras] Use std::get in less_first,less_second to support more types.

Sounds good to me - wouldn't even mind if you wanted to implement a generic abstraction, less<N> and implement less_first/second as aliases of that type.

Wed, Mar 8, 2:57 AM · Restricted Project, Restricted Project
fhahn updated the diff for D143865: [VPlan] Add predicate to VPReplicateRecipe, expand region later..

Address latest comments & rebase before landing, thanks!

Wed, Mar 8, 2:41 AM · Restricted Project, Restricted Project
fhahn committed rG3b2cf45d6beb: [VPlan] Check if recipe is in ReplicateRegion for IfPredicateInstr (NFC) (authored by fhahn).
[VPlan] Check if recipe is in ReplicateRegion for IfPredicateInstr (NFC)
Wed, Mar 8, 2:40 AM · Restricted Project, Restricted Project
fhahn closed D145322: [VPlan] Check if recipe is in ReplicateRegion for IfPredicateInstr (NFC).
Wed, Mar 8, 2:40 AM · Restricted Project, Restricted Project
fhahn updated the diff for D145322: [VPlan] Check if recipe is in ReplicateRegion for IfPredicateInstr (NFC).

Rebase before landing, thanks for the review!

Wed, Mar 8, 2:13 AM · Restricted Project, Restricted Project

Tue, Mar 7

fhahn added a comment to D144051: [SCEV] Do not strengthen nuw/nsw flags during get[Zero,Sign]ExtendedExpr..

It looks like the test failures were from earlier runs, possibly with a missing dependency. I re-run them and they came back clear (on Windows, ClangdTests.exe/IncludeCleaner/GenerateMissingHeaderDiags failed, but that's very likely unrelated)

Tue, Mar 7, 11:23 AM · Restricted Project, Restricted Project
fhahn accepted D145151: clang: Handle MatrixType in hasFloatingRepresentation.

LGTM, thanks!

Tue, Mar 7, 9:00 AM · Restricted Project
fhahn added reviewers for D145270: Add codegen for llvm exp/exp2 elementwise builtins: erichkeane, aaron.ballman, arsenm.
Tue, Mar 7, 8:59 AM · Restricted Project, Restricted Project
fhahn committed rG7019624ee124: [SCEV] Strengthen nowrap flags via ranges for ARs on construction. (authored by fhahn).
[SCEV] Strengthen nowrap flags via ranges for ARs on construction.
Tue, Mar 7, 8:11 AM · Restricted Project, Restricted Project
fhahn closed D144050: [SCEV] Strengthen nowrap flags via ranges for ARs on construction..
Tue, Mar 7, 8:11 AM · Restricted Project, Restricted Project
fhahn added inline comments to D144050: [SCEV] Strengthen nowrap flags via ranges for ARs on construction..
Tue, Mar 7, 7:45 AM · Restricted Project, Restricted Project
fhahn accepted D144467: [IPSCCP] Don't require noundef for !range annotation.

LGTM, thanks! The range is guaranteed to not include undef as per an earlier check.

Tue, Mar 7, 6:56 AM · Restricted Project, Restricted Project
fhahn accepted D144125: [VPlan] VPWidenIntOrFpInductionRecipe inherits from VPHeaderPHIRecipe.

LGTM, thanks!

Tue, Mar 7, 6:00 AM · Restricted Project, Restricted Project
fhahn accepted D142546: [ConstraintElimination] Decompose or instruction if the constant operand < 2^known_zero_bits of the first operand..

LGTM with the suggestions addressed before landing.

Tue, Mar 7, 5:57 AM · Restricted Project, Restricted Project
fhahn added a comment to D144476: [GlobalOpt] Extend logic in SRA heuristic to skip stores of initializer..

LGTM, though I think it might be cleaner if we collected the initializer part during the construction of GlobalPart, rather than calculating it twice, here and during the SRA split.

Tue, Mar 7, 5:12 AM · Restricted Project, Restricted Project
fhahn requested review of D145490: [GlobalOpt] Collect initializer when building GlobalPart..
Tue, Mar 7, 5:11 AM · Restricted Project, Restricted Project
fhahn requested review of D145489: [STLExtras] Use std::get in less_first,less_second to support more types.
Tue, Mar 7, 5:08 AM · Restricted Project, Restricted Project
fhahn committed rG34e75240cb97: [GlobalOpt] Use structured bindings to access TypesVector (NFC). (authored by fhahn).
[GlobalOpt] Use structured bindings to access TypesVector (NFC).
Tue, Mar 7, 5:00 AM · Restricted Project, Restricted Project
fhahn accepted D145472: [LV][AArch64] Resolve test failure due use of unordered container.

LGTM, thanks! The commit title could be a bit more descriptive by explicitly mentioning what the code change is, e.g. something like: [LV] Use SetVector to collect invariants in calculateRegisterUsage.

Tue, Mar 7, 4:38 AM · Restricted Project, Restricted Project
fhahn committed rG226778e1b2d1: [GlobalOpt] Extend logic in SRA heuristic to skip stores of initializer. (authored by fhahn).
[GlobalOpt] Extend logic in SRA heuristic to skip stores of initializer.
Tue, Mar 7, 2:08 AM · Restricted Project, Restricted Project
fhahn closed D144476: [GlobalOpt] Extend logic in SRA heuristic to skip stores of initializer..
Tue, Mar 7, 2:08 AM · Restricted Project, Restricted Project
fhahn added a comment to D144101: [test-suite] Increase the --filter-short threshold.

It would probably be even better to make the threshold an argument (perhaps pass the threshold optionally like --filter-short=N), with the default being 1.0?

I like this idea. Where would the argument come from in the buildbots? CMake?

Tue, Mar 7, 1:58 AM · Restricted Project
fhahn added a comment to D144101: [test-suite] Increase the --filter-short threshold.

It would probably be even better to make the threshold an argument (perhaps pass the threshold optionally like --filter-short=N), with the default being 1.0?

Tue, Mar 7, 1:46 AM · Restricted Project
fhahn added inline comments to D144848: [SCEV] Skip instrs with non-scevable types in forget[Loop,Value]..
Tue, Mar 7, 1:42 AM · Restricted Project, Restricted Project

Mon, Mar 6

fhahn added a comment to D144050: [SCEV] Strengthen nowrap flags via ranges for ARs on construction..

What are the current thoughts on the next steps to move forward with this. As for the 2 regressions, I think the one in llvm/test/Analysis/ScalarEvolution/incorrect-exit-count.ll won't be easily resolve-able. The other one can be solved by a follow-up (D144753), but it needs a bit more work because currently it triggers an infinite loop in a test case.

Mon, Mar 6, 8:59 AM · Restricted Project, Restricted Project
fhahn requested review of D145395: [SCEV] Also strengthen flags for post-increment..
Mon, Mar 6, 8:52 AM · Restricted Project, Restricted Project
fhahn accepted D145356: [LoopVectorize][NFC] Fix incorrect comment in LoopVectorize.h.

LGTM, thanks for updating this!

Mon, Mar 6, 7:47 AM · Restricted Project, Restricted Project
fhahn updated the diff for D32197: [TySan] A Type Sanitizer (Runtime Library).

rebased and removed MIPS and PPC from compiler-rt/lib/tysan/tysan_platform.h as it has not been tested.

Mon, Mar 6, 5:58 AM · Restricted Project, Restricted Project