[all-commits] [llvm/llvm-project] a6cbda: [clang-format] Correctly annotate keyword operator...
Craig Topper via All-commits
all-commits at lists.llvm.org
Mon Nov 13 01:51:51 PST 2023
Branch: refs/heads/release/17.x
Home: https://github.com/llvm/llvm-project
Commit: a6cbdae98272ac60bca67e10c9c447f88883576a
https://github.com/llvm/llvm-project/commit/a6cbdae98272ac60bca67e10c9c447f88883576a
Author: Owen Pan <owenpiano at gmail.com>
Date: 2023-11-13 (Mon, 13 Nov 2023)
Changed paths:
M clang/lib/Format/TokenAnnotator.cpp
M clang/unittests/Format/TokenAnnotatorTest.cpp
Log Message:
-----------
[clang-format] Correctly annotate keyword operator function name (#66904)
Fixes #66890.
(cherry picked from commit 67b99fa8ba638edddd5ce38b4d379eab8e339e4a)
Commit: e7dc53b94212b2a65f9fb995fd3e0f9a2d192fdc
https://github.com/llvm/llvm-project/commit/e7dc53b94212b2a65f9fb995fd3e0f9a2d192fdc
Author: Craig Topper <craig.topper at sifive.com>
Date: 2023-11-13 (Mon, 13 Nov 2023)
Changed paths:
M llvm/lib/Target/Mips/MipsISelLowering.cpp
M llvm/test/CodeGen/Mips/llvm-ir/ashr.ll
M llvm/test/CodeGen/Mips/llvm-ir/lshr.ll
M llvm/test/CodeGen/Mips/llvm-ir/shl.ll
Log Message:
-----------
[Mips] In LowerShift*Parts, xor with bits-1 instead of -1. (#71149)
If we start with an i128 shift, the initial shift amount would usually
have zeros in bit 8 and above. xoring the shift amount with -1 will set
those upper bits to 1. If DAGCombiner is able to prove those bits are
now 1, then the shift that uses the xor will be replaced with undef.
Which we don't want.
Reduce the xor constant to VT.bits-1 where VT is half the size of the
larger shift type. This avoids toggling the upper bits. The hardware
shift instruction only uses the lower bits of the shift amount. I assume
the code used NOT because the hardware doesn't use the upper bits, but
that isn't compatible with the LLVM poison semantics.
Fixes #71142.
(cherry picked from commit 8d24d3900ec3f28902b2fad4a2c2c2b789257424)
Compare: https://github.com/llvm/llvm-project/compare/094cfd14c813...e7dc53b94212
More information about the All-commits
mailing list