[all-commits] [llvm/llvm-project] 9f0742: [ValueTracking] Instruction::isBinaryOp should be ...

Juneyoung Lee via All-commits all-commits at lists.llvm.org
Sun Jul 26 05:49:26 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f074214b7a3bc9d88caadbf7bd6116305977a4e
      https://github.com/llvm/llvm-project/commit/9f074214b7a3bc9d88caadbf7bd6116305977a4e
  Author: Juneyoung Lee <aqjune at gmail.com>
  Date:   2020-07-26 (Sun, 26 Jul 2020)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/test/Transforms/InstSimplify/freeze.ll

  Log Message:
  -----------
  [ValueTracking] Instruction::isBinaryOp should be used for constexprs

This is a simple patch that makes canCreateUndefOrPoison use
Instruction::isBinaryOp because BinaryOperator inherits Instruction.

Reviewed By: nikic

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




More information about the All-commits mailing list