Sometimes we need to swap true-val and false-val of a SelectInst.
Having a function for that is nicer than hand-writing it each time.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Paths
| Differential D65520
[IR] SelectInst: add swapValues() utility ClosedPublic Authored by lebedev.ri on Jul 31 2019, 9:25 AM.
Details Summary Sometimes we need to swap true-val and false-val of a SelectInst.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 31 2019, 9:35 AM Closed by commit rL367547: [IR] SelectInst: add swapValues() utility (authored by lebedevri). · Explain WhyAug 1 2019, 5:32 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 212790 llvm/trunk/include/llvm/IR/Instructions.h
llvm/trunk/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/trunk/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/trunk/lib/Transforms/Instrumentation/ControlHeightReduction.cpp
|