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

DAGTypeLegalizer crash on rotate legalization #46664

Closed
rotateright opened this issue Aug 26, 2020 · 3 comments
Closed

DAGTypeLegalizer crash on rotate legalization #46664

rotateright opened this issue Aug 26, 2020 · 3 comments
Labels
bugzilla Issues migrated from bugzilla llvm:codegen

Comments

@rotateright
Copy link
Contributor

Bugzilla Link 47320
Resolution FIXED
Resolved on Oct 25, 2020 03:06
Version trunk
OS All
CC @Arnaud-de-Grandmaison-ARM,@jayfoad,@RKSimon,@smithp35
Fixed by commit(s) 62b17a7

Extended Description

I noticed this on https://reviews.llvm.org/D86601, but it's a different bug:

define <2 x i16> @​rotate_v2i16(<2 x i16> %x, <2 x i16> %amt) nounwind {
%res = call <2 x i16> @​llvm.fshr.v2i16(<2 x i16> %x, <2 x i16> %x, <2 x i16> %amt)
ret <2 x i16> %res
}

declare <2 x i16> @​llvm.fshr.v2i16(<2 x i16>, <2 x i16>, <2 x i16>)

$ llc -o - rot.ll -mtriple=aarch64
.text
.file "rot.ll"
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
0. Program arguments: ./llc -o - rot.ll -mtriple=aarch64

  1. Running pass 'Function Pass Manager' on module 'rot.ll'.
  2. Running pass 'AArch64 Instruction Selection' on function '@var_funnnel_v2i16'
    0 llc 0x000000010b9ef778 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 40
    1 llc 0x000000010b9ee508 llvm::sys::RunSignalHandlers() + 248
    2 llc 0x000000010b9efd8c SignalHandler(int) + 268
    3 libsystem_platform.dylib 0x00007fff6a6725fd _sigtramp + 29
    4 libsystem_platform.dylib 0x0000000000000010 _sigtramp + 18446603338731018800
    5 llc 0x000000010b773793 llvm::DAGTypeLegalizer::ReplaceValueWith(llvm::SDValue, llvm::SDValue) + 67
    6 llc 0x000000010b749e30 llvm::DAGTypeLegalizer::PromoteIntegerResult(llvm::SDNode*, unsigned int) + 784
    7 llc 0x000000010b772cd8 llvm::DAGTypeLegalizer::run() + 2808
    8 llc 0x000000010b7784ee llvm::SelectionDAG::LegalizeTypes() + 1438
    9 llc 0x000000010b885869 llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 1897
@RKSimon
Copy link
Collaborator

RKSimon commented Sep 7, 2020

This is a general promotion issue, not aarch64 specific.

@RKSimon
Copy link
Collaborator

RKSimon commented Oct 16, 2020

Candidate Patch: https://reviews.llvm.org/D89497

@RKSimon
Copy link
Collaborator

RKSimon commented Oct 25, 2020

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla llvm:codegen
Projects
None yet
Development

No branches or pull requests

2 participants