[all-commits] [llvm/llvm-project] 61f691: [PowerPC] Sign extend comparison operand for signe...
Nemanja Ivanovic via All-commits
all-commits at lists.llvm.org
Mon Jan 18 19:24:02 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 61f69153e8dd7956d03ce46e30257c5bb3e41873
https://github.com/llvm/llvm-project/commit/61f69153e8dd7956d03ce46e30257c5bb3e41873
Author: Nemanja Ivanovic <nemanja.i.ibm at gmail.com>
Date: 2021-01-18 (Mon, 18 Jan 2021)
Changed paths:
M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
M llvm/test/CodeGen/PowerPC/atomics-regression.ll
A llvm/test/CodeGen/PowerPC/sign-ext-atomics.ll
Log Message:
-----------
[PowerPC] Sign extend comparison operand for signed atomic comparisons
As of 8dacca943af8a53a23b1caf3142d10fb4a77b645, we sign extend the atomic loaded
operand for signed subword comparisons. However, the assumption that the other
operand is correctly sign extended doesn't always hold. This patch sign extends
the other operand if it needs to be sign extended.
This is a second fix for https://bugs.llvm.org/show_bug.cgi?id=30451
Differential revision: https://reviews.llvm.org/D94058
More information about the All-commits
mailing list