Revert r301950: SpeculativeExecution: Stop using whitelist for costs
authorChandler Carruth <chandlerc@gmail.com>
Wed, 10 May 2017 12:30:07 +0000 (12:30 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 10 May 2017 12:30:07 +0000 (12:30 +0000)
commitf3bd8ddedb7f5641d16b15af8b7b327ae5cbf10b
tree2bf2ae95876dd592937ac0fe21811634e2b289b0
parent6b989288abf53a99d9ec6924df9d6bba9a1c4d82
Revert r301950: SpeculativeExecution: Stop using whitelist for costs

This pass doesn't correctly handle testing for when it is legal to hoist
arbitrary instructions. The whitelist happens to make it safe, so before
it is removed the pass's legality checks will need to be enhanced.

Details have been added to the code review thread for the patch.

llvm-svn: 302640
llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp
llvm/test/Transforms/SpeculativeExecution/spec-other.ll [deleted file]
llvm/test/Transforms/SpeculativeExecution/spec-vector.ll [deleted file]