[PATCH] D25943: [InstCombine] re-use bitcasted compare operands in selects (PR28001)

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 25 07:58:53 PDT 2016


spatel created this revision.
spatel added reviewers: majnemer, efriedma, nhaehnle.
spatel added a subscriber: llvm-commits.
Herald added a subscriber: mcrosier.

These mixed bitcast patterns show up with SSE/AVX intrinsics because we bitcast function parameters to <2 x i64>.

The bitcasts obfuscate the expected min/max forms as shown in PR28001:
https://llvm.org/bugs/show_bug.cgi?id=28001#c6


https://reviews.llvm.org/D25943

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/minmax-fold.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25943.75703.patch
Type: text/x-patch
Size: 4870 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161025/777cbc1a/attachment.bin>


More information about the llvm-commits mailing list