[PATCH] D40304: [InstCombine] PR35354: Convert load bitcast (select (Cond, &V1, &V2)) --> select(Cond, load bitcast &V1, load bitcast &V2)

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 21 08:02:08 PST 2017


ABataev added a comment.

In https://reviews.llvm.org/D40304#931720, @spatel wrote:

> I’m not at a dev machine so can’t review this currently, but is this the same as
>  https://bugs.llvm.org/show_bug.cgi?id=34603 ?


No, it is a bit different. We don't have the GEP from select here, we have `load (bitcast float* to i32* (select))` because of InstCombiner.
I convert this to `select (load (bitcast float* to i32 *), (load (bitcast float* to i32*))`


https://reviews.llvm.org/D40304





More information about the llvm-commits mailing list