[all-commits] [llvm/llvm-project] 6f9710: [JumpThreading] Don't limit the type of an operand

Juneyoung Lee via All-commits all-commits at lists.llvm.org
Tue Aug 4 00:22:25 PDT 2020


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

  Changed paths:
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp
    M llvm/test/Transforms/JumpThreading/freeze.ll

  Log Message:
  -----------
  [JumpThreading] Don't limit the type of an operand

Compared to the optimized code with branch conditions never frozen,
limiting the type of freeze's operand causes generation of suboptimal code in
some cases.
I would like to suggest removing the constraint, as this patch does.
If the number of freeze instructions becomes significant, this can be revisited.

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




More information about the All-commits mailing list