[PATCH] D75505: [InstCombine] Enhance cast-of-load->load-of-bitcast fold to handle multiple identical casts

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 11:57:42 PST 2020


spatel added a comment.

This feels like we're pushing the limits of instcombine. What if we view this as a SimplifyCFG problem instead: for any no-op cast or other zero-cost instruction with operand defined in a different BB, hoist the cast up to its operand's BB because that helps CSE and instcombine?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75505/new/

https://reviews.llvm.org/D75505





More information about the llvm-commits mailing list