Skip to content
Commit 5e73ff2e authored by Evan Cheng's avatar Evan Cheng
Browse files

Split SelectionDAGISel::IsLegalAndProfitableToFold to

IsLegalToFold and IsProfitableToFold. The generic version of the later simply checks whether the folding candidate has a single use.

This allows the target isel routines more flexibility in deciding whether folding makes sense. The specific case we are interested in is folding constant pool loads with multiple uses.

llvm-svn: 96255
parent 5f5cbf5d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment