[PATCH] InstCombine: extract instead of shuffle when performing vector/array type punning

JF Bastien jfb at chromium.org
Wed Feb 18 13:59:14 PST 2015


================
Comment at: lib/Transforms/InstCombine/InstCombineVectorOps.cpp:993
@@ +992,3 @@
+      if (BitCastInst *BC = dyn_cast<BitCastInst>(U))
+        if (BC->hasNUsesOrMore(1))
+          // Only visit bitcasts that weren't previously handled.
----------------
majnemer wrote:
> Is this different from `!BC->use_empty()` ?
Done.

http://reviews.llvm.org/D7734

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list