Commit d2170a9
gkoehler
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.
llvm/llvm-project#133507
llvm/llvm-project#151429
This isn't the best fix. I will replace it if LLVM commits a
different fix.
ok miod@1 parent ed576cb commit d2170a9
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2337 | 2337 | | |
2338 | 2338 | | |
2339 | 2339 | | |
| 2340 | + | |
| 2341 | + | |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
2340 | 2345 | | |
2341 | 2346 | | |
2342 | 2347 | | |
| |||
0 commit comments