CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2025/08/02 07:47:38
Modified files:
gnu/llvm/llvm/lib/Target/PowerPC: PPCISelDAGToDAG.cpp
Log message:
Unbreak clang 19 (compiled by 19) on macppc
clang 19 was miscompiling its own llvm::MergeBasicBlockIntoOnlyPred
(Transform/Utils/Local.cpp). A change between clang 18 and 19 exposed
a mistake in BitPermutationSelector (PPCISelDAGToDAG.cpp). It
optimized away a permutation (rotate all 32 bits left by 0) and got
result number 1 from a load pre-inc SDNode, but the node replacement
assumed result number 0. Kludge by adding an extra node.
https://github.com/llvm/llvm-project/issues/133507
https://github.com/llvm/llvm-project/pull/151429
This isn't the best fix. I will replace it if LLVM commits a
different fix.
ok miod@