[PATCH] D102864: [InstSimplify] Transform X * Y % Y --> 0.
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 22 19:47:59 PDT 2021
xbolva00 added inline comments.
================
Comment at: llvm/lib/Analysis/InstructionSimplify.cpp:926
/// This applies to all 4 opcodes (sdiv/udiv/srem/urem).
-static Value *simplifyDivRem(Value *Op0, Value *Op1, bool IsDiv,
+static Value *simplifyDivRem(Value *Op0, Value *Op1,
+ Instruction::BinaryOps Opcode,
----------------
Nit: opcode as 1st arg?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102864/new/
https://reviews.llvm.org/D102864
More information about the llvm-commits
mailing list