[PATCH] D70042: [TargetLowering][DAGCombine][MSP430] Shift Amount Threshold in DAGCombine (4)

Joan LLuch via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 11 07:36:22 PST 2019


joanlluch marked an inline comment as done.
joanlluch added inline comments.


================
Comment at: llvm/lib/Target/MSP430/MSP430ISelLowering.cpp:364
+                                                       unsigned amount) const {
+  return !(amount == 8 || amount == 9 || amount<=2);
 }
----------------
spatel wrote:
> This changes the MSP430 output for shift by 8 or 9? If yes, there should be tests that show this difference.
I commited baseline tests to show this (D70083). I did not wait for review in this particular case, as I understand it's simple enough. (It does not modify any code) (I hope this is ok). 
I will submit an updated patch for this.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70042





More information about the llvm-commits mailing list