[GlobalISel] Micro-optimize the conditional branch optimization.
authorAmara Emerson <amara@apple.com>
Fri, 7 May 2021 07:00:47 +0000 (00:00 -0700)
committerAmara Emerson <amara@apple.com>
Fri, 7 May 2021 07:03:09 +0000 (00:03 -0700)
commit1ccebb18ef9f4110e555209261d73dbec393e364
treeb57bd0e446d435cca64cc6d684a7f5ecebc68f8d
parente4dee7e7309a060bd8dd3c9df0a708157fc935d4
[GlobalISel] Micro-optimize the conditional branch optimization.

Convert a check into an assert and pass an MI instead of recomputing in the
apply function.
llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
llvm/include/llvm/Target/GlobalISel/Combine.td
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp