[all-commits] [llvm/llvm-project] c77108: [InstCombine] Fold freeze(undef) into a proper con...

Juneyoung Lee via All-commits all-commits at lists.llvm.org
Thu Aug 6 02:40:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c771087161f4948a4d56d64e433f6bbc9dbfad90
      https://github.com/llvm/llvm-project/commit/c771087161f4948a4d56d64e433f6bbc9dbfad90
  Author: Juneyoung Lee <aqjune at gmail.com>
  Date:   2020-08-06 (Thu, 06 Aug 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/freeze-phi.ll
    M llvm/test/Transforms/InstCombine/freeze.ll
    M llvm/test/Transforms/InstCombine/select.ll

  Log Message:
  -----------
  [InstCombine] Fold freeze(undef) into a proper constant

This is a simple patch that folds freeze(undef) into a proper constant after inspecting its uses.

Reviewed By: nikic

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




More information about the All-commits mailing list