[PATCH] D117406: [DAGCombiner] Adjust some checks in DAGCombiner::reduceLoadWidth

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 17 12:05:25 PST 2022


spatel added inline comments.


================
Comment at: llvm/test/CodeGen/PowerPC/pr39478.ll:6
 
+; FIXME: It should be possible to fold the addi+lwbrx into a single lbz, given
+; that only 8-bits are demanded. Maybe that can be detected already when
----------------
This is a generic missed fold. I added more tests and a proposed fix:
D117508


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117406



More information about the llvm-commits mailing list