[all-commits] [llvm/llvm-project] 6f0ca6: [JumpThreading] Insert freeze when unfolding select

Nikita Popov via All-commits all-commits at lists.llvm.org
Sat May 21 02:24:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f0ca6fd2305be860057a1b2c21c6708f4ffdb38
      https://github.com/llvm/llvm-project/commit/6f0ca6fd2305be860057a1b2c21c6708f4ffdb38
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2022-05-21 (Sat, 21 May 2022)

  Changed paths:
    M llvm/include/llvm/Transforms/Scalar/JumpThreading.h
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp
    M llvm/test/Transforms/JumpThreading/codesize-loop.ll
    M llvm/test/Transforms/JumpThreading/select.ll

  Log Message:
  -----------
  [JumpThreading] Insert freeze when unfolding select

JumpThreading may convert selects into branch instructions,
in which case the condition needs to be frozen (as branch on
poison is immediate undefined behavior, unlike select on poison).

The necessary code for this is already in place, this just enables
the option.

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




More information about the All-commits mailing list