Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NVPTX] Improve lowering of v2i16 logical ops. #67073

Merged
merged 1 commit into from
Sep 22, 2023
Merged

Conversation

Artem-B
Copy link
Member

@Artem-B Artem-B commented Sep 21, 2023

Bitwise logical ops can always be done as b32, regardless of availability of other v2i16 ops, that would need a new GPU.

Bitwise logical ops can always be done as b32, regardless of availability of
other v2i16 ops, that would need a new GPU.
Artem-B referenced this pull request Sep 21, 2023
TargetLoweringBase makes almost all ops legal by default, so make ones
that Expand explicit and remove redundant legal settings.
Copy link
Contributor

@ThomasRaoux ThomasRaoux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Artem-B Artem-B merged commit 6485790 into llvm:main Sep 22, 2023
1 check passed
@Artem-B Artem-B deleted the v2i16bitops branch September 22, 2023 20:05
@MaskRay
Copy link
Member

MaskRay commented Sep 23, 2023

Heads up: this has caused xla/tests:float8_test_gpu to fail.

MaskRay added a commit that referenced this pull request Sep 23, 2023
This reverts commit 6485790.

Caused xla/tests:float8_test_gpu to fail
```
LLVM ERROR: Cannot select: t118: v2i16 = or t375, t401
  t375: v2i16 = BUILD_VECTOR t374, t372
    t374: i16 = select t247, Constant:i16<8960>, t360
      t247: i1 = setcc t199, Constant:i16<7>, seteq:ch
        t199: i16 = extract_vector_elt t187, Constant:i64<0>
          t187: v2i16 = and t183, t410
            t183: v2i16 = BUILD_VECTOR t383, t384
            ...
```

Acked by author to revert
@MaskRay
Copy link
Member

MaskRay commented Sep 23, 2023

Details?

LLVM ERROR: Cannot select: t118: v2i16 = or t375, t401
  t375: v2i16 = BUILD_VECTOR t374, t372
    t374: i16 = select t247, Constant:i16<8960>, t360
      t247: i1 = setcc t199, Constant:i16<7>, seteq:ch
        t199: i16 = extract_vector_elt t187, Constant:i64<0>
          t187: v2i16 = and t183, t410
            t183: v2i16 = BUILD_VECTOR t383, t384
            ...

Filed an internal bug :)

MaskRay added a commit that referenced this pull request Sep 23, 2023
@Artem-B
Copy link
Member Author

Artem-B commented Sep 25, 2023

Re-landed w/ the fix in #67365

Guzhu-AMD pushed a commit to GPUOpen-Drivers/llvm-project that referenced this pull request Sep 28, 2023
Local branch amd-gfx 5e06c87 Merged main:a6e81df289ec into amd-gfx:18e7078bbdc4
Remote branch main e01df87 [NVPTX] Test crash introduced by llvm#67073
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants