Skip to content

Commit

Permalink
Revert "GlobalISel: move vector extract/insert inside generic opcode …
Browse files Browse the repository at this point in the history
…region."

I was writing against an earlier branch and Volkan had already fixed this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297668 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
TNorthover committed Mar 13, 2017
1 parent 8879a17 commit d0188c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
8 changes: 3 additions & 5 deletions include/llvm/Target/TargetOpcodes.def
Original file line number Diff line number Diff line change
Expand Up @@ -392,17 +392,15 @@ HANDLE_TARGET_OPCODE(G_GEP)
/// *down* to the given alignment.
HANDLE_TARGET_OPCODE(G_PTR_MASK)

/// Generic BRANCH instruction. This is an unconditional branch.
HANDLE_TARGET_OPCODE(G_BR)

/// Generic insertelement.
HANDLE_TARGET_OPCODE(G_INSERT_VECTOR_ELT)

/// Generic extractelement.
HANDLE_TARGET_OPCODE(G_EXTRACT_VECTOR_ELT)

/// Generic BRANCH instruction. This is an unconditional branch.
HANDLE_TARGET_OPCODE(G_BR)
// WARNING: make sure you update the PRE_ISEL_GENERIC_OPCODE_END if you put
// anything after G_BR!!! Better yet, don't.

// TODO: Add more generic opcodes as we move along.

/// Marker for the end of the generic opcode.
Expand Down
9 changes: 0 additions & 9 deletions test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,3 @@ broken:
continue:
ret void
}

; FALLBACK-WITH-REPORT-ERR: remark: <unknown>:0:0: unable to legalize instruction: {{.*}} G_EXTRACT_VECTOR
; FALLBACK-WITH-REPORT-ERR: warning: Instruction selection used fallback path for unhandled_extract
; FALLBACK-WITH-REPORT-OUT-LABEL: unhandled_extract:
define i32 @unhandled_extract(<2 x i32> %in, i64 %elt) {
%tmp = extractelement <2 x i32> %in, i64 %elt
%res = add i32 %tmp, 1
ret i32 %res
}

0 comments on commit d0188c3

Please sign in to comment.