]> granicus.if.org Git - llvm/commit
[InstCombine] fix matcher to bind to specific operand (PR32830)
authorSanjay Patel <spatel@rotateright.com>
Thu, 27 Apr 2017 21:55:03 +0000 (21:55 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 27 Apr 2017 21:55:03 +0000 (21:55 +0000)
commit402d01739e421af68ab1a6da9279a419d49bb1aa
treeb047e8dd06cf8a50e843fc9dcb2c48a3e6c9ca6b
parentaf3c2de37e4ea8428ffa065db2656aa971f96418
[InstCombine] fix matcher to bind to specific operand (PR32830)

Matching any random value would be very wrong:
https://bugs.llvm.org/show_bug.cgi?id=32830

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301594 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/and-or-not.ll