[ValueTracking] Use Inst::comesBefore in isValidAssumeForCtx (NFC).
authorFlorian Hahn <flo@fhahn.com>
Sun, 5 Apr 2020 11:12:33 +0000 (12:12 +0100)
committerFlorian Hahn <flo@fhahn.com>
Sun, 5 Apr 2020 11:38:04 +0000 (12:38 +0100)
commit47ee40407562c296ace1cd0814a615890611e3b3
tree18cc99a2e4eeaa39bc3411ab6fbecaae2a638256
parent168503773dc216a7805f52d2868c1a1504297adc
[ValueTracking] Use Inst::comesBefore in isValidAssumeForCtx (NFC).

D51664 added Instruction::comesBefore which should provide better
performance than the manual check.

Reviewers: rnk, nikic, spatel

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D76228
llvm/lib/Analysis/ValueTracking.cpp