SpeculativeExecution: fixed ingoring free execution
authordfukalov <daniil.fukalov@amd.com>
Wed, 19 Feb 2020 11:05:33 +0000 (14:05 +0300)
committerdfukalov <daniil.fukalov@amd.com>
Thu, 20 Feb 2020 11:45:02 +0000 (14:45 +0300)
commitdbfc682e2ba2581e214fabb04ba1b555ff8b274a
treec86fa7d67ff0edac531e098ad8c75bfc0d6ec03b
parentc8f9e526bc5319f2d0beed4012fbf17b11e15161
SpeculativeExecution: fixed ingoring free execution

Summary:
After updating cost model in AMDGPU target (47a5c36b37f0) the pass started to
ignore some BBs since they got all instructions estimated as free.

Reviewers: arsenm, chandlerc, nhaehnle

Reviewed By: nhaehnle

Subscribers: jvesely, wdng, nhaehnle, tpr, hiraditya, kerbowa, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74825
llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp
llvm/test/CodeGen/AMDGPU/speculative-execution-freecasts.ll [new file with mode: 0644]