[InstCombin] Avoid nested Create calls, to guarantee order.
authorFlorian Hahn <flo@fhahn.com>
Tue, 18 Feb 2020 08:44:11 +0000 (09:44 +0100)
committerFlorian Hahn <flo@fhahn.com>
Tue, 18 Feb 2020 08:44:11 +0000 (09:44 +0100)
commit90630225730524ee7982e1475f5af9683450d4e7
treed42c69d52e2822ea9cd3cf69506f832cb2d4feb3
parent6c85e92bcf675bdd42e3658908b0d68b7dc44d53
[InstCombin] Avoid nested Create calls, to guarantee order.

The original code allowed creating the != checks in unpredictable order,
causing http://lab.llvm.org:8011/builders/clang-cmake-x86_64-sde-avx512-linux/builds/34014
to fail.
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp