[all-commits] [llvm/llvm-project] 11326c: [IndVarSimplify][NFC] Removed mayThrow from if-con...

Philip Reames via All-commits all-commits at lists.llvm.org
Mon May 3 18:25:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11326cbcdb9710311832774ccb08e69a607813ef
      https://github.com/llvm/llvm-project/commit/11326cbcdb9710311832774ccb08e69a607813ef
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2021-05-03 (Mon, 03 May 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/IndVarSimplify.cpp

  Log Message:
  -----------
  [IndVarSimplify][NFC] Removed mayThrow from if-condition in predicateLoopExits of IndVarSimplify

Instruction has mayHaveSideEffects method that returns true if mayThrow return true because this is called internally in the first method.  As such, the call being removed is redundant.

Patch By: vdsered (Daniil Seredkin)
Differential Revision: https://reviews.llvm.org/D101685




More information about the All-commits mailing list