[PATCH] Fix ARM peephole optimizeCompare to avoid optimizing unsigned cmp to 0.

Jan Voung jvoung at chromium.org
Thu Jan 29 15:17:24 PST 2015


Hi jfb, manmanren,

Previously it only avoided optimizing signed comparisons to 0.
Sometimes the DAGCombiner will optimize the unsigned comparisons
to 0 before it gets to the peephole pass, but sometimes it doesn't.

Fix for PR22373.

http://reviews.llvm.org/D7274

Files:
  lib/Target/ARM/ARMBaseInstrInfo.cpp
  test/CodeGen/ARM/sub-cmp-peephole.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7274.18998.patch
Type: text/x-patch
Size: 3822 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150129/32867326/attachment.bin>


More information about the llvm-commits mailing list