[all-commits] [llvm/llvm-project] 575ba6: [InstCombine] Don't transform code if DoTransform ...

weiguozhi via All-commits all-commits at lists.llvm.org
Fri Jun 18 18:03:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 575ba6f42560002807dd6382ffc83abc1b6b9b50
      https://github.com/llvm/llvm-project/commit/575ba6f42560002807dd6382ffc83abc1b6b9b50
  Author: Guozhi Wei <carrot at google.com>
  Date:   2021-06-18 (Fri, 18 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
    M llvm/test/Transforms/InstCombine/zext.ll

  Log Message:
  -----------
  [InstCombine] Don't transform code if DoTransform is false

In patch https://reviews.llvm.org/D72396, it doesn't check DoTransform before transforming the code, and generates wrong result for the attached test case.

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




More information about the All-commits mailing list