[IPT] Don't use OrderedInstructions (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 19 Apr 2020 20:12:05 +0000 (22:12 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 20 Apr 2020 16:25:31 +0000 (18:25 +0200)
commit54d01cbc15eabb3daf4911d7bc935082846ac271
treebe6ce4f4a4ed84d3a4547aa8c1c8b3268b301dbd
parent33ad38a925aa5120a547ed16f0c2a6d07f16e8e5
[IPT] Don't use OrderedInstructions (NFC)

Use Instruction::comesBefore() instead of OrderedInstructions
inside InstructionPrecedenceTracking. This also removes the
dominator tree dependency.

Differential Revision: https://reviews.llvm.org/D78461
llvm/include/llvm/Analysis/InstructionPrecedenceTracking.h
llvm/include/llvm/Analysis/MustExecute.h
llvm/lib/Analysis/InstructionPrecedenceTracking.cpp
llvm/lib/Transforms/Scalar/GVN.cpp
llvm/lib/Transforms/Scalar/LICM.cpp