[all-commits] [llvm/llvm-project] 52ac91: [PowerPC] Fix crash in peephole optimization
Nemanja Ivanovic via All-commits
all-commits at lists.llvm.org
Tue Dec 3 14:21:38 PST 2019
Branch: refs/heads/release/9.x
Home: https://github.com/llvm/llvm-project
Commit: 52ac91476dcffc5ecb3a6ff0e63b27f8a13edd4a
https://github.com/llvm/llvm-project/commit/52ac91476dcffc5ecb3a6ff0e63b27f8a13edd4a
Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
Date: 2019-12-03 (Tue, 03 Dec 2019)
Changed paths:
M llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
A llvm/test/CodeGen/PowerPC/pr44183.ll
Log Message:
-----------
[PowerPC] Fix crash in peephole optimization
When converting reg+reg shifts to reg+imm rotates, we neglect to consider the
CodeGenOnly versions of the 32-bit shift mnemonics. This means we produce a
rotate with missing operands which causes a crash.
Committing this fix without review since it is non-controversial that the list
of mnemonics to consider should include the 64-bit aliases for the exact
mnemonics.
Fixes PR44183.
(cherry picked from commit 241cbf201a6f4b7658697e3c76fc6e741d049a01)
More information about the All-commits
mailing list