[PATCH] Fix optimisations of SELECT_CC which assumed result is boolean

Oliver Stannard oliver.stannard at arm.com
Fri Nov 14 05:26:08 PST 2014


Use isConstTrueVal instead of hard-coding either 1 or AllOnes.

http://reviews.llvm.org/D6249

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/ARM/select_xform.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6249.16204.patch
Type: text/x-patch
Size: 3784 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141114/89072af4/attachment.bin>


More information about the llvm-commits mailing list