This patch adds some simple canonicalization of invariant intrinsics to instcombine. For now, only this:
invariant(a && b) -> invariant(a); invariant(b)
Differential D4491
Invariant intrinsic canonicalization hfinkel on Jul 13 2014, 10:44 PM. Authored by
Details
This patch adds some simple canonicalization of invariant intrinsics to instcombine. For now, only this: invariant(a && b) -> invariant(a); invariant(b)
Diff Detail Event TimelineComment Actions No change, but rebased against the latest version of http://reviews.llvm.org/D4490 (because this patch adds to the end of the same regression test). Comment Actions LGTM.
|
Extracting out II->getCalledValue with a name like "AssumeIntrinsic" would make this code easier to understand on first glance.