1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 13:11:39 +01:00

[TTI] Let getOperationCost assume that Freeze is free

This commit is contained in:
Juneyoung Lee 2020-02-27 02:56:01 +09:00
parent 017c178b5d
commit 0958192882

View File

@ -62,6 +62,11 @@ public:
// Otherwise, the default basic cost is used.
return TTI::TCC_Basic;
case Instruction::Freeze:
// Freeze operation is free because it should be lowered into a register
// use without any register copy in assembly code.
return TTI::TCC_Free;
case Instruction::FDiv:
case Instruction::FRem:
case Instruction::SDiv: