We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14aef53 commit 4f71252Copy full SHA for 4f71252
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
@@ -62,6 +62,11 @@ class TargetTransformInfoImplBase {
62
// Otherwise, the default basic cost is used.
63
return TTI::TCC_Basic;
64
65
+ case Instruction::Freeze:
66
+ // Freeze operation is free because it should be lowered into a register
67
+ // use without any register copy in assembly code.
68
+ return TTI::TCC_Free;
69
+
70
case Instruction::FDiv:
71
case Instruction::FRem:
72
case Instruction::SDiv:
0 commit comments