[all-commits] [llvm/llvm-project] 153144: [SimplifyCFG] Preserve metadata when unconditional...

Michael Kruse via All-commits all-commits at lists.llvm.org
Mon Apr 26 08:57:50 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 153144be40855ca1e35e1bfca082e10f553bb2e5
      https://github.com/llvm/llvm-project/commit/153144be40855ca1e35e1bfca082e10f553bb2e5
  Author: Michael Kruse <llvm-project at meinersbur.de>
  Date:   2021-04-26 (Mon, 26 Apr 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    A llvm/test/Transforms/SimplifyCFG/pr50060-constantfold-loopid.ll

  Log Message:
  -----------
  [SimplifyCFG] Preserve metadata when unconditionalizing branches (constant condition).

When replacing a conditional branch by an unconditional one because the condition is a constant, transfer the metadata to the new branch instruction.

Part of fix for llvm.org/PR50060

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D101141




More information about the All-commits mailing list