[all-commits] [llvm/llvm-project] 979e8a: [AArch64] Check opcode before trying to extract re...
David Tellenbach via All-commits
all-commits at lists.llvm.org
Wed Aug 23 14:50:06 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 979e8ae4fce64546c65d24864eedd8165bc9787b
https://github.com/llvm/llvm-project/commit/979e8ae4fce64546c65d24864eedd8165bc9787b
Author: David Tellenbach <dtellenbach at apple.com>
Date: 2023-08-23 (Wed, 23 Aug 2023)
Changed paths:
M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
A llvm/test/CodeGen/AArch64/emit_fneg_with_non_register_operand.mir
Log Message:
-----------
[AArch64] Check opcode before trying to extract register from operand
When matching FNEG patterns for the MachineCombiner we need to check for
opcodes first, before trying to extract a register from an operand.
Otherwise handling of instructions with non-register operands causes the
compiler to crash.
Differential Revision: https://reviews.llvm.org/D158473
More information about the All-commits
mailing list