[PATCH] D72420: [LoopRotate] Add support for rotating loops with switch exit

Mike Hommey via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 26 17:32:08 PST 2020


glandium added a comment.

FWIW, when applying this patch on a LLVM10-based rustc, the rustc build fails with:

  PHI node has multiple entries for the same basic block with different incoming values!
    %35 = phi { i64*, i32 }* [ %83, %77 ], [ %84, %77 ], [ %33, %2 ]
  label %77
    %83 = getelementptr { i64*, i32 }, { i64*, i32 }* %35, i64 -1
    %84 = getelementptr { i64*, i32 }, { i64*, i32 }* %35, i64 -1
  in function _ZN80_$LT$alloc..vec..Vec$LT$T$GT$$u20$as$u20$alloc..vec..SpecExtend$LT$T$C$I$GT$$GT$9from_iter17h62b0d0798a862a64E
  LLVM ERROR: Broken function found, compilation aborted!
  error: could not compile `rustc_typeck`.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72420/new/

https://reviews.llvm.org/D72420



More information about the llvm-commits mailing list