[all-commits] [llvm/llvm-project] 3bbd38: [Reassociate][NFC] Use an appropriate dyn_cast for...

wjristow via All-commits all-commits at lists.llvm.org
Mon Jul 25 10:26:03 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3bbd380a5b51db23e829f8ce6b948e7b9d451f15
      https://github.com/llvm/llvm-project/commit/3bbd380a5b51db23e829f8ce6b948e7b9d451f15
  Author: Warren Ristow <warren.ristow at sony.com>
  Date:   2022-07-25 (Mon, 25 Jul 2022)

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

  Log Message:
  -----------
  [Reassociate][NFC] Use an appropriate dyn_cast for BinaryOperator

In D129523, it was noted that there is are some questionable naked casts
from Instruction to BinaryOperator, which could be addressed by doing a
dyn_cast directly to BinaryOperator, avoiding the need for the later cast.
This cleans up that casting.

Reviewed By: nikic, spatel, RKSimon

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




More information about the All-commits mailing list