[PATCH] [InstCombine] Fold bitcasts into loads across PHINodes

Philip Pfaffe philip.pfaffe at gmail.com
Tue May 5 08:46:49 PDT 2015


Hi majnemer, chandlerc,

Due to a combination of canonicalization of induction vars and subsequent inlining/simplification, we are sometimes left with a PHINode which only uses a load and bitcasts, and whose only user is also a bitcast. If the bitcasts are noop and tautological when concatenated, we can instead fold the desired type through the PHI into the load and get rid of some cast clutter.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9500

Files:
  lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
  test/Transforms/InstCombine/bitcast_load_phi.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9500.24951.patch
Type: text/x-patch
Size: 6781 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150505/53077735/attachment.bin>


More information about the llvm-commits mailing list