[llvm-dev] Store unswitch
Davide Italiano via llvm-dev
llvm-dev at lists.llvm.org
Tue Apr 25 21:36:12 PDT 2017
On Tue, Apr 25, 2017 at 9:24 PM, Hongbin Zheng via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> Is there a pass in LLVM that can optimize:
> if (x)
> a[i] = y0;
> a[i] = y1;
> a[i] = x ? y0 : y1?
> I tried opt (3.9) with -O3 but looks like such an optimization do not
The same IR at -O3 for both cases on this example.
"There are no solved problems; there are only problems that are more
or less solved" -- Henri Poincare
More information about the llvm-dev