[BypassSlowDivision] Simplify partially-tautological if statement.
authorJustin Lebar <jlebar@google.com>
Wed, 16 Nov 2016 00:44:43 +0000 (00:44 +0000)
committerJustin Lebar <jlebar@google.com>
Wed, 16 Nov 2016 00:44:43 +0000 (00:44 +0000)
commit583b8687eb2b3de6f57da02e3a6a2181da1d3cc4
tree96b903b11a4357a83e32fcf69ea1f21a215f2a71
parent507013180edc1aaeb78cc88f238aca56ea7957b1
[BypassSlowDivision] Simplify partially-tautological if statement.

if (A || (B && A)) --> if (A).

llvm-svn: 287061
llvm/lib/Transforms/Utils/BypassSlowDivision.cpp