This is a follow up to r335753. At the time I forgot about isProfitableToFold which makes this pretty easy.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
This looks reasonable, but i'm not familiar with that code.
lib/Target/X86/X86ISelDAGToDAG.cpp | ||
---|---|---|
576 ↗ | (On Diff #153261) | Extra unneeded brackets |
lib/Target/X86/X86ISelDAGToDAG.cpp | ||
---|---|---|
594 ↗ | (On Diff #153261) | dyn_cast maybe? |
Comment Actions
LGTM once the extra brackets have been fixed. I'm happy with either the isa/cast pattern or replacing with a dyn_cast inner if().