Page MenuHomePhabricator

qiucf (Qiu Chaofan)
User

Projects

User does not belong to any projects.

User Details

User Since
Mar 3 2019, 9:30 PM (211 w, 4 d)

I'm identical to @ecnelises .

Recent Activity

Sun, Mar 19

qiucf added inline comments to D140381: [PowerPC] Use Power9 test data class instruction to lower IS_FPCLASS.
Sun, Mar 19, 8:32 PM · Restricted Project, Restricted Project
qiucf updated the diff for D140381: [PowerPC] Use Power9 test data class instruction to lower IS_FPCLASS.
Sun, Mar 19, 8:32 PM · Restricted Project, Restricted Project

Wed, Mar 15

qiucf updated the diff for D140381: [PowerPC] Use Power9 test data class instruction to lower IS_FPCLASS.
Wed, Mar 15, 12:36 AM · Restricted Project, Restricted Project

Tue, Mar 14

qiucf committed rG608212a0ff2f: [Clang] Check feature requirement from inlined callee (authored by qiucf).
[Clang] Check feature requirement from inlined callee
Tue, Mar 14, 11:30 PM · Restricted Project, Restricted Project
qiucf closed D143479: [Clang] Emit error when caller cannot meet target feature requirement from always-inlining callee.
Tue, Mar 14, 11:30 PM · Restricted Project, Restricted Project
qiucf updated the diff for D143467: [PowerPC] Add target feature requirement to builtins.
  • For builtins with matching instruction, use the required ISA/vector version
  • For the rest builtins used in altivec.h, use requirements specified by the header
  • Keep the feature checks in SemaChecking as-is, since they give user useful message (only available on POWER8 or later CPUs instead of requires isa-v207-instructions to be enabled)
    • lharx and similar instructions exist since ISA v2.06 (Power 7), while SemaChecking.cpp requires ISA v2.07 (Power 8)
Tue, Mar 14, 10:59 PM · Restricted Project, Restricted Project

Mon, Mar 13

qiucf added a comment to D143479: [Clang] Emit error when caller cannot meet target feature requirement from always-inlining callee.

Gentle ping

Mon, Mar 13, 10:56 PM · Restricted Project, Restricted Project
qiucf added a comment to D143467: [PowerPC] Add target feature requirement to builtins.

Another note regarding the motivating test case:
Use of vector double should require VSX. We don't really seem to have the ability to turn this off early enough to catch this though. It would seem that in the front end, the target features depend on the compilation options and not the function itself.

Mon, Mar 13, 10:40 PM · Restricted Project, Restricted Project

Thu, Mar 9

qiucf added a comment to D143467: [PowerPC] Add target feature requirement to builtins.

However, manually adding the required target feature seems a little mistakable, like the one below. I guess we can not get the required feature in the LLVM instruction TDs(if the builtin is mapped to a IR intrinsic and the intrinsic is selected inside the instruction TD) because this is done in CLANG?

Thu, Mar 9, 1:26 AM · Restricted Project, Restricted Project

Wed, Mar 8

qiucf added a comment to D140381: [PowerPC] Use Power9 test data class instruction to lower IS_FPCLASS.

Gentle ping... Any comments?

Wed, Mar 8, 11:59 PM · Restricted Project, Restricted Project
qiucf abandoned D138696: [PowerPC] Exploit test data class instruction for isinf/iszero.

I'd like to abandon this one since frontend change will eliminate this problem.

Wed, Mar 8, 11:58 PM · Restricted Project, Restricted Project
qiucf added a comment to D143467: [PowerPC] Add target feature requirement to builtins.

Ping

Wed, Mar 8, 11:53 PM · Restricted Project, Restricted Project

Tue, Mar 7

qiucf added a comment to D143198: DAG: Lower is.fpclass fcInf to fcmp of fabs.

The PPC changes look fine to me. I believe that the new TOC loads will likely go away with https://reviews.llvm.org/D140381. Is that assumption correct @qiucf?

Tue, Mar 7, 6:12 PM · Restricted Project, Restricted Project

Thu, Mar 2

qiucf abandoned D109302: [PowerPC] Check subregister defines before removing XXMFACC/XXMTACC.
Thu, Mar 2, 10:05 PM · Restricted Project, Restricted Project

Wed, Feb 22

qiucf added a comment to D144534: [InstCombine] Fold (fcmp_oeq (fabs x) +Inf) into is_fpclass(x, fcInf).

I think this is a backwards canonicalization decision and fabs + fcmp will be more broadly understood

Wed, Feb 22, 6:39 PM · Restricted Project, Restricted Project

Feb 21 2023

qiucf requested review of D144534: [InstCombine] Fold (fcmp_oeq (fabs x) +Inf) into is_fpclass(x, fcInf).
Feb 21 2023, 8:26 PM · Restricted Project, Restricted Project

Feb 19 2023

qiucf added a comment to D138696: [PowerPC] Exploit test data class instruction for isinf/iszero.

Gentle ping...

Feb 19 2023, 9:53 PM · Restricted Project, Restricted Project

Feb 13 2023

qiucf committed rGcb90bb986611: [PowerPC] Specify the dynamic loader prefix in ppc-float-abi-warning (authored by tuliom).
[PowerPC] Specify the dynamic loader prefix in ppc-float-abi-warning
Feb 13 2023, 11:07 PM · Restricted Project, Restricted Project
qiucf closed D143736: [PowerPC] Specify the dynamic loader prefix in ppc-float-abi-warning.
Feb 13 2023, 11:07 PM · Restricted Project, Restricted Project

Feb 12 2023

qiucf accepted D143736: [PowerPC] Specify the dynamic loader prefix in ppc-float-abi-warning.

LGTM, thanks for catching this.

Feb 12 2023, 8:28 AM · Restricted Project, Restricted Project

Feb 9 2023

qiucf accepted D143561: [DwarfGenerator] Emit dwarf address section when dwarf version is not less than 4.

Looks good, thanks

Feb 9 2023, 7:13 PM · Restricted Project, Restricted Project
qiucf added a comment to D143561: [DwarfGenerator] Emit dwarf address section when dwarf version is not less than 4.

Is this an AIX only restriction or for all DWARF <= 4?

Feb 9 2023, 6:58 PM · Restricted Project, Restricted Project

Feb 7 2023

qiucf requested review of D143479: [Clang] Emit error when caller cannot meet target feature requirement from always-inlining callee.
Feb 7 2023, 1:51 AM · Restricted Project, Restricted Project

Feb 6 2023

qiucf requested review of D143467: [PowerPC] Add target feature requirement to builtins.
Feb 6 2023, 11:29 PM · Restricted Project, Restricted Project

Feb 5 2023

qiucf updated the diff for D141473: [PowerPC] Simplify fp-to-int store optimization.
Feb 5 2023, 10:46 PM · Restricted Project, Restricted Project
qiucf updated the diff for D141249: [PowerPC] Combine fptoint-store under strict cases.
Feb 5 2023, 10:43 PM · Restricted Project, Restricted Project

Feb 1 2023

qiucf committed rGfef7eedc3ef8: [PowerPC] Use default attributes for more intrinsics (authored by qiucf).
[PowerPC] Use default attributes for more intrinsics
Feb 1 2023, 10:01 PM · Restricted Project, Restricted Project
qiucf closed D141566: [PowerPC] Use default attributes for more intrinsics.
Feb 1 2023, 10:01 PM · Restricted Project, Restricted Project
qiucf updated the diff for D141473: [PowerPC] Simplify fp-to-int store optimization.
Feb 1 2023, 9:18 PM · Restricted Project, Restricted Project

Jan 11 2023

qiucf requested review of D141566: [PowerPC] Use default attributes for more intrinsics.
Jan 11 2023, 9:31 PM · Restricted Project, Restricted Project
qiucf requested review of D141473: [PowerPC] Simplify fp-to-int store optimization.
Jan 11 2023, 2:14 AM · Restricted Project, Restricted Project
qiucf planned changes to D141249: [PowerPC] Combine fptoint-store under strict cases.
Jan 11 2023, 1:57 AM · Restricted Project, Restricted Project

Jan 8 2023

qiucf requested review of D141249: [PowerPC] Combine fptoint-store under strict cases.
Jan 8 2023, 9:17 PM · Restricted Project, Restricted Project

Dec 27 2022

qiucf committed rGd00680876cd6: Fix failure of ldst-16-byte.mir (authored by qiucf).
Fix failure of ldst-16-byte.mir
Dec 27 2022, 10:24 PM · Restricted Project, Restricted Project
qiucf committed rG0ad57bf236df: [PowerPC] Enable track-subreg-liveness by default (authored by qiucf).
[PowerPC] Enable track-subreg-liveness by default
Dec 27 2022, 10:10 PM · Restricted Project, Restricted Project
qiucf closed D108902: [PowerPC] Enable track-subreg-liveness by default.
Dec 27 2022, 10:09 PM · Restricted Project, Restricted Project

Dec 26 2022

qiucf added inline comments to D138696: [PowerPC] Exploit test data class instruction for isinf/iszero.
Dec 26 2022, 6:24 PM · Restricted Project, Restricted Project

Dec 21 2022

qiucf updated the diff for D138696: [PowerPC] Exploit test data class instruction for isinf/iszero.

Rebased on D140381

Dec 21 2022, 1:23 AM · Restricted Project, Restricted Project
qiucf added a comment to D108902: [PowerPC] Enable track-subreg-liveness by default.

Thanks for doing this. Could you please show some data about the performance and compile time? Hope they are both good.

Dec 21 2022, 12:50 AM · Restricted Project, Restricted Project

Dec 20 2022

qiucf planned changes to D138696: [PowerPC] Exploit test data class instruction for isinf/iszero.

Will change to a combine to IS_FPCLASS (based on D140381)

Dec 20 2022, 8:08 PM · Restricted Project, Restricted Project
qiucf added inline comments to D140381: [PowerPC] Use Power9 test data class instruction to lower IS_FPCLASS.
Dec 20 2022, 2:19 AM · Restricted Project, Restricted Project
qiucf requested review of D140381: [PowerPC] Use Power9 test data class instruction to lower IS_FPCLASS.
Dec 20 2022, 1:59 AM · Restricted Project, Restricted Project
qiucf committed rG74cca964a653: Pre-commit more cases for PowerPC is_fpclass (authored by qiucf).
Pre-commit more cases for PowerPC is_fpclass
Dec 20 2022, 1:13 AM · Restricted Project, Restricted Project

Dec 18 2022

qiucf committed rG6cad2a95fb54: Fix 'underline too short' failure (authored by qiucf).
Fix 'underline too short' failure
Dec 18 2022, 11:30 PM · Restricted Project, Restricted Project
qiucf committed rGa40ef656d812: [Intrinsic] Rename flt.rounds intrinsic to get.rounding (authored by qiucf).
[Intrinsic] Rename flt.rounds intrinsic to get.rounding
Dec 18 2022, 11:24 PM · Restricted Project, Restricted Project, Restricted Project
qiucf closed D139507: [Intrinsic] Rename flt.rounds intrinsic to get.rounding.
Dec 18 2022, 11:23 PM · Restricted Project, Restricted Project, Restricted Project

Dec 15 2022

qiucf updated the diff for D139507: [Intrinsic] Rename flt.rounds intrinsic to get.rounding.
Dec 15 2022, 10:48 PM · Restricted Project, Restricted Project, Restricted Project

Dec 14 2022

qiucf accepted D138954: [PPC] Convert tests to check 'target=<triple>'.

Thanks!

Dec 14 2022, 6:35 PM · Restricted Project, Restricted Project, Restricted Project

Dec 13 2022

qiucf added a comment to D138954: [PPC] Convert tests to check 'target=<triple>'.

Need rebase after rG64e4d03c681a1c43ec22aee9ce32b784ed5aee9c?

Dec 13 2022, 7:33 PM · Restricted Project, Restricted Project, Restricted Project
qiucf added a comment to D139450: Warn about unsupported ibmlongdouble.

Committed as https://github.com/llvm/llvm-project/commit/5f68c4111ab9c79b902723df3986dd1033813c01

Dec 13 2022, 7:18 PM · Restricted Project, Restricted Project, Restricted Project
qiucf committed rG5f68c4111ab9: Warn about unsupported ibmlongdouble (authored by tuliom).
Warn about unsupported ibmlongdouble
Dec 13 2022, 7:15 PM · Restricted Project, Restricted Project
qiucf closed D139450: Warn about unsupported ibmlongdouble.
Dec 13 2022, 7:15 PM · Restricted Project, Restricted Project, Restricted Project
qiucf accepted D139450: Warn about unsupported ibmlongdouble.
Dec 13 2022, 7:53 AM · Restricted Project, Restricted Project, Restricted Project
qiucf added a reviewer for D137125: PPC: Implement null target streamer: Restricted Project.
Dec 13 2022, 1:56 AM · Restricted Project, Restricted Project
qiucf accepted D138331: ConstantFolding: Fix handling of canonicalize for ppc_fp128 0s.

LGTM. Thanks.

Dec 13 2022, 1:55 AM · Restricted Project, Restricted Project
qiucf updated the diff for D108902: [PowerPC] Enable track-subreg-liveness by default.
Dec 13 2022, 1:14 AM · Restricted Project, Restricted Project
qiucf updated the diff for D139507: [Intrinsic] Rename flt.rounds intrinsic to get.rounding.

Use AutoUpgrade to rename flt.rounds to get.rounding.

Dec 13 2022, 12:43 AM · Restricted Project, Restricted Project, Restricted Project
qiucf added a comment to D138696: [PowerPC] Exploit test data class instruction for isinf/iszero.

Ping

Dec 13 2022, 12:23 AM · Restricted Project, Restricted Project

Dec 12 2022

qiucf added inline comments to D139450: Warn about unsupported ibmlongdouble.
Dec 12 2022, 6:30 PM · Restricted Project, Restricted Project, Restricted Project

Dec 8 2022

qiucf added a comment to D139450: Warn about unsupported ibmlongdouble.

Thanks for the patch! But does libc++ support to be built with -mabi=ieeelongdouble now? (like libstdc++, if it works correctly, it should co-exist and be linked with different long double ABIs)

Dec 8 2022, 7:32 AM · Restricted Project, Restricted Project, Restricted Project
Herald added a project to D112932: Use llvm.is_fpclass to implement FP classification functions: Restricted Project.

This patch looks good and llvm.is.fpclass will by default be expanded (except SystemZ which has their own lowering). Is there any blocker for this?

Dec 8 2022, 7:11 AM · Restricted Project, Restricted Project

Dec 7 2022

qiucf added a comment to D139507: [Intrinsic] Rename flt.rounds intrinsic to get.rounding.

Thank you for working on this!

Is there any reason why we should keep the old intrinsic?

Dec 7 2022, 11:43 PM · Restricted Project, Restricted Project, Restricted Project
qiucf committed rG62f20f51ce39: [PowerPC] Support test data class intrinsic of 128-bit float (authored by qiucf).
[PowerPC] Support test data class intrinsic of 128-bit float
Dec 7 2022, 12:46 AM · Restricted Project, Restricted Project, Restricted Project
qiucf closed D138105: [PowerPC] Support test data class intrinsic of 128-bit float.
Dec 7 2022, 12:46 AM · Restricted Project, Restricted Project, Restricted Project

Dec 6 2022

qiucf requested review of D139507: [Intrinsic] Rename flt.rounds intrinsic to get.rounding.
Dec 6 2022, 10:25 PM · Restricted Project, Restricted Project, Restricted Project

Nov 27 2022

qiucf accepted D138317: [PowerPC] Add support for tune-cpu attribute.

It's not easy to give a direct test case to demonstrate effect of tune-cpu. And even so, the case would be volatile. We can adjust features specific to tune-cpu in PPC.td in future patches.

Nov 27 2022, 12:12 AM · Restricted Project, Restricted Project

Nov 25 2022

qiucf requested review of D138696: [PowerPC] Exploit test data class instruction for isinf/iszero.
Nov 25 2022, 1:48 AM · Restricted Project, Restricted Project
qiucf committed rGb9be5a682329: Pre-commit PowerPC case for zero/inf fpclassify (authored by qiucf).
Pre-commit PowerPC case for zero/inf fpclassify
Nov 25 2022, 1:38 AM · Restricted Project, Restricted Project

Nov 23 2022

qiucf requested review of D138551: [PowerPC] Mask constant operands in bit permutation calculation.
Nov 23 2022, 1:09 AM · Restricted Project, Restricted Project

Nov 22 2022

qiucf updated the diff for D138105: [PowerPC] Support test data class intrinsic of 128-bit float.

Change error message regarding __float128.

Nov 22 2022, 8:23 PM · Restricted Project, Restricted Project, Restricted Project

Nov 17 2022

qiucf committed rGcab9c02bd97f: [Clang] Fix behavior of -ffp-model option when overriden (authored by qiucf).
[Clang] Fix behavior of -ffp-model option when overriden
Nov 17 2022, 6:35 PM · Restricted Project, Restricted Project
qiucf closed D137618: [Clang] Fix behavior of -ffp-model option when overriden.
Nov 17 2022, 6:35 PM · Restricted Project, Restricted Project
qiucf added a comment to D137618: [Clang] Fix behavior of -ffp-model option when overriden.

Thanks!

Nov 17 2022, 6:29 PM · Restricted Project, Restricted Project

Nov 16 2022

qiucf added inline comments to D137618: [Clang] Fix behavior of -ffp-model option when overriden.
Nov 16 2022, 6:45 PM · Restricted Project, Restricted Project
qiucf updated the diff for D137618: [Clang] Fix behavior of -ffp-model option when overriden.

Update test case

Nov 16 2022, 6:45 PM · Restricted Project, Restricted Project
qiucf requested review of D138105: [PowerPC] Support test data class intrinsic of 128-bit float.
Nov 16 2022, 1:01 AM · Restricted Project, Restricted Project, Restricted Project

Nov 15 2022

qiucf committed rG5d19fea81fc2: [PowerPC] Fix strict load-conversion recognition (authored by qiucf).
[PowerPC] Fix strict load-conversion recognition
Nov 15 2022, 6:03 PM · Restricted Project, Restricted Project
qiucf closed D138011: [PowerPC] Fix load-conversion pattern recognition in strictfp cases.
Nov 15 2022, 6:02 PM · Restricted Project, Restricted Project
qiucf requested review of D138011: [PowerPC] Fix load-conversion pattern recognition in strictfp cases.
Nov 15 2022, 1:48 AM · Restricted Project, Restricted Project
qiucf committed rGa853c42a6a5e: Pre-commit load/store cases for PowerPC direct-move (authored by qiucf).
Pre-commit load/store cases for PowerPC direct-move
Nov 15 2022, 1:36 AM · Restricted Project, Restricted Project

Nov 8 2022

qiucf updated the diff for D137618: [Clang] Fix behavior of -ffp-model option when overriden.
Nov 8 2022, 6:48 PM · Restricted Project, Restricted Project
qiucf abandoned D137536: [NFC] Replace use of PPC64 macro into powerpc64 in intrinsic headers.

I think rG7aa90b21b453d1ca52fdfccfd7e01e61d9e5b1f1 has already done that.

Nov 8 2022, 6:18 PM · Restricted Project, Restricted Project
qiucf requested review of D137618: [Clang] Fix behavior of -ffp-model option when overriden.
Nov 8 2022, 1:18 AM · Restricted Project, Restricted Project

Nov 7 2022

qiucf requested review of D137536: [NFC] Replace use of PPC64 macro into powerpc64 in intrinsic headers.
Nov 7 2022, 2:27 AM · Restricted Project, Restricted Project

Oct 30 2022

qiucf planned changes to D109302: [PowerPC] Check subregister defines before removing XXMFACC/XXMTACC.
Oct 30 2022, 10:26 PM · Restricted Project, Restricted Project

Oct 26 2022

qiucf accepted D136258: [PowerPC] Fix check for ieeelongdouble support.

Thanks for the fix! LGTM, sorry for the absense.

Oct 26 2022, 11:58 PM · Restricted Project, Restricted Project

Sep 4 2022

qiucf added a reviewer for D131260: [DAG] select Cond, -1, C --> or (sext Cond), C if Cond is MVT::i1: Restricted Project.
Sep 4 2022, 7:52 PM · Restricted Project, Restricted Project

Aug 26 2022

qiucf added a comment to D101605: [PowerPC] Remove extra swap for extract+vperm on LE.

This patch is functionally incorrect

one.c:

#include <stdio.h>
extern double test10(vector int a, vector int b);
int main() {
  double res;
                 //   0           1           2           3
  vector int a = {0x404c38d4, 0x40460e14, 0x404c38d4, 0x7ae147ae};
                 //   4           5           6           7
  vector int b = {0x4027fae1, 0xfdf3b646, 0x47ae147b, 0x40563851};
  res = test10(a, b);
  printf("res: %f\n", res);
  return 0;
}

two.c:

double test10(vector int a, vector int b) {
  //vector int c = __builtin_shufflevector(a, b, 5, 2, 3, 7);
  //                5     2     3     7
  vector int c = { b[1], a[2], a[3], b[3] };
  return ((vector double)c)[0] + 11.0;
}

Expected result:
res: 67.444000

Actual result:
res: -45563434706068069391700044011884519815891525610042006390324289980530809059647691943421443695410413568.000000

So we have decided to revert it.

Aug 26 2022, 2:08 AM · Restricted Project, Restricted Project

Jul 25 2022

qiucf removed a reviewer for D130526: [Driver][PowerPC] Support -mtune=: jsji.
Jul 25 2022, 6:31 PM · Restricted Project, Restricted Project

Jul 21 2022

qiucf committed rG708084ec379e: [PowerPC] Support x86 compatible intrinsics on AIX (authored by qiucf).
[PowerPC] Support x86 compatible intrinsics on AIX
Jul 21 2022, 1:35 AM · Restricted Project, Restricted Project
qiucf closed D129461: [PowerPC] Support x86 compatible intrinsics on AIX.
Jul 21 2022, 1:35 AM · Restricted Project, Restricted Project

Jul 20 2022

qiucf updated the diff for D129461: [PowerPC] Support x86 compatible intrinsics on AIX.
Jul 20 2022, 7:26 PM · Restricted Project, Restricted Project

Jul 13 2022

qiucf added inline comments to D129461: [PowerPC] Support x86 compatible intrinsics on AIX.
Jul 13 2022, 7:50 PM · Restricted Project, Restricted Project
qiucf added inline comments to D129461: [PowerPC] Support x86 compatible intrinsics on AIX.
Jul 13 2022, 1:23 AM · Restricted Project, Restricted Project
qiucf updated the diff for D129461: [PowerPC] Support x86 compatible intrinsics on AIX.

Merge conditions.

Jul 13 2022, 1:17 AM · Restricted Project, Restricted Project
qiucf updated the diff for D129461: [PowerPC] Support x86 compatible intrinsics on AIX.
Jul 13 2022, 12:40 AM · Restricted Project, Restricted Project

Jul 10 2022

qiucf requested review of D129461: [PowerPC] Support x86 compatible intrinsics on AIX.
Jul 10 2022, 10:17 PM · Restricted Project, Restricted Project

Jun 27 2022

qiucf abandoned D116395: [Clang] Emit warning for -x option without effects.
Jun 27 2022, 11:43 PM · Restricted Project, Restricted Project
Herald added a project to D116395: [Clang] Emit warning for -x option without effects: Restricted Project.

Abandon this since we have rGe2a1f8ec27b88be670cd867c43588f24516d2bbf.

Jun 27 2022, 11:42 PM · Restricted Project, Restricted Project

May 25 2022

qiucf added inline comments to D126302: [PowerPC] Diagnose invalid combination with Altivec, VSX and soft-float.
May 25 2022, 10:42 PM · Restricted Project, Restricted Project