[all-commits] [llvm/llvm-project] 0f1494: AArch64: avoid UB shift of negative value
Tim Northover via All-commits
all-commits at lists.llvm.org
Mon Jul 27 05:50:16 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0f1494be43f0916516533fea9d99e9211bb4c581
https://github.com/llvm/llvm-project/commit/0f1494be43f0916516533fea9d99e9211bb4c581
Author: Tim Northover <t.p.northover at gmail.com>
Date: 2020-07-27 (Mon, 27 Jul 2020)
Changed paths:
M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
Log Message:
-----------
AArch64: avoid UB shift of negative value
Left shifting a negative value is undefined behaviour, so this just moves the
negation afterwards to avoid it.
More information about the All-commits
mailing list