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:
parent
017c178b5d
commit
0958192882
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user